span Element
The <span> is a generic inline container with no meaning of its own, used to wrap a small piece of text or other inline content for styling. Unlike <div>, it does not start on a new line.
Web
Use a <span> when you need to style just part of a line — for example, coloring a single word inside a sentence — without breaking the text onto a new line.
<span> is the inline counterpart to the block-level <div>.
Examples
HTML
<p>The total is <span class="price">$9.99</span> today.</p>Output:
Renders the sentence with '$9.99' wrapped in a styleable inline span.