Back to Concepts
<span>
A generic inline container for text.
The `<span>` tag is an inline container used to mark up a part of a text, or a part of a document. Unlike `<div>`, which is a block-level element, `<span>` does not start on a new line. It is useful for styling a specific section of text within a paragraph without breaking the flow of content.
✦ In The Wild
Seen in: Twitter / X
Character Count
The little number showing how many characters you have left? That's likely a <span> styled to turn red when you're close to the limit.
📱
Live Example & Code
Preview Output
<p>My mother has <span style="color:blue; font-weight:bold;">blue</span> eyes.</p>