Name

span — HTML 4.01 | HTML5

Synopsis

<span> . . . </span>

Identifies a generic inline element. The span element is typically given meaning with the class or id attributes, which also allow it to be accessible to scripts and selected in style sheets.

Start/End Tags

Required/Required

Attributes

Core, Internationalization, Events, HTML5 Global Attributes

Example

Jenny: <span class="tel">867.5309</span>

Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.