Skip to content
HTML.ONE
Home HTML Elements

HTML <span> Element

A generic inline container for phrasing content; useful for styling part of a sentence.

Example

<p>Price: <span class="price">$20</span></p>

Further reference

HTML Living Standard

Live preview