SPAN: the HTML container that does not alter your document

Categories: Software Development

Posted in: HTML, SPAN, Container

The span tag is the only HTML inline container tag: unless you apply CSS to it, it's simply an inline tag that doesn't alter the way your document is displayed.

Please also note that you could use a div tag and apply CSS display:inline; to achieve the same result:

<span>Some content</span>

is equivalent to:

<div style="display:inline">Some content</div>


Read this for more details: link in a new tab


Hope this helps :)


My original answer on StackOverflow is at: link in a new tab


Alex Domenici