- 1

What is the use of span tag in html

7th May 2019, 6:41 PM
Ashutosh Agrawal
4 Answers
+ 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/
7th May 2019, 6:54 PM
Solo
Solo - avatar
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 👀
7th May 2019, 6:46 PM
Jason Mackjoo
Jason Mackjoo - avatar
0
Span is an inline container. You use it to style text in a specific way or with a peculiar style.
7th May 2019, 8:18 PM
Antonio Mariani
Antonio Mariani - avatar