+ 2
What is the meaning of span here whether it is attribute of css or it is same as row and colspan
3 Respuestas
+ 5
span is an inline element of html.. It is a tag not an attribute.. and when you insert anything between span tag then it won't give a line break after it. i.e. it won't behave like block elements as( div, h1 or p)..
+ 1
Just additional info:
The span tag is like the div tag. Is mostly used for styling by using an id or class. The difference between the two is that div is a block element, It's on a seperate line. spanhowever is an inline element, meaning that it can be on a line with other elements
- 1
In HTML span is one inline element/tag.
We can use anywhere within other tags/separate. We can also apply styles for that span &more than one spans mention with class name, and apply styles.
ex:1 <h1>India celebrating 71<sup>st<sup> <span> Independence day</span.>
here directly apply any style u need.
ex:2 <p>Hello <span class="testing">World</span>
but, here take class name i.e., testing then , apply styles.
Not only these 2 tags in div, id, buttons, a tag etc., any place u use.