HTML: The Markup Language

spangeneric span # T

The span element is a generic wrapper for phrasing content that by itself does not represent anything.

Permitted contents #

Permitted attributes #

global attributes
Any attributes permitted globally.

Tag omission #

A span element must have both a start tag and an end tag.

Permitted parent elements #

any element that can contain phrasing elements

Details #

The span element is a can be used with attributes such as class, lang, xml:lang, and title to add additional semantics and structure to phrasing content.

DOM interface #

interface HTMLSpanElement : HTMLElement {};