Skip to main content

html-tags.com

<span>

The generic inline container with no meaning — the inline counterpart of div.

Baseline: Widely available · Inline text semantics

When to use it

Only when no semantic inline element fits and you need a hook for lang, translate, id, or microdata.

When not to

A span without an attribute justifying it is a defect; check for a real element first.

Key attributes

lang / translate / id
the usual justifications

Example

The imprint Field Guide keeps its name in every locale.

<p>The imprint <span translate='no'>Field Guide</span> keeps its name in every locale.</p>
Rendered live above, source below.

Authoritative references