Fandom

HTML & CSS Wiki

Span

649pages on
this wiki
Add New Page
Comments0 Share


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.

AttributesEdit

Global attributesEdit

See Global HTML Attributes.

UsageEdit

To apply this in an HTML document, use:

<span>Text text text</span>

External LinksEdit

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.