- 1
What is the use of span tag in html
4 odpowiedzi
+ 1
<span> - the inline element is displayed without line breaks.
You can insert inline elements inside block elements. For example, you can have multiple <span> elements inside a <div> element.
Inline elements cannot contain any block level elements.
https://www.sololearn.com/learn/HTML/1034/
0
<span> is a generic container with no particular semantic meaning.
It is used in the creation of pages for stylistic purposes, in conjunction with the style and class attributes.
It can also be useful to provide attributes such as lang or title to isolated portions of text. <span> may contain simple lines of text.
For larger content blocks, <div> is used 👀