jump

HTML 5: The Markup Language (ARIA Edition)

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.
aria = #
(detailed attribute description to come)

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 {};