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.


Global attributes

See Global HTML Attributes.


To apply this in an HTML document, use:

<span>Text text text</span>

External Links

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.