HTML and CSS Reference
In-Depth Information
Name
span
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
stylesheets.
Usage
Categories:
Flow content, phrasing content, palpable content
Permitted contexts:
Where phrasing content is expected
Permitted content:
Phrasing content
Start/end tags:
Required/Required
Attributes
HTML5 Global Attributes
Example
<li>Jenny:
<span class=
"tel"
>
867.5309
</span>
</li>