HTML & CSS Wiki
Advertisement

The HTML <span></span> element does not affect the presentation of its contents in any way although as it is inline it cannot contain any block-level elements. Like a blank slate, it is very useful for custom CSS styles which only affect segments of text within paragraphs. Its block-level counterpart is the <div></div> element.

Attributes[]

Global attributes[]

See Global HTML Attributes.

Usage[]

To apply this in an HTML document, use:

<span>Text text text</span>

External Links[]

Advertisement