Text

span

This tag is used to group inline elements. It is typically used to apply CSS style to a portion of a paragraph or text. Inline element

Syntax

<span attributes> ... </span>

Example

<p>This is a <span style=”color:red;”>red</span>text</p>

Related tags

CSS Properties

HTML attributes

Search the Soup!