The HTML <span> Tag

Like the div tag, the span tag is used as a generic way of adding structure to an HTML document. But unlike div, span is an inline element.

<p> Text text <span class="bold">	text</span>text text</p>

Text text texttext text

It goes without saying that we simply could have used the <b> tag here, but what's so powerful about CSS is that we could have applied any styleto any element (text, images, lists...).