# span element

Type: | Text Characteristics
Attributes: | color • font-family • font-feature-settings • font-stretch • font-style • font-variant • font-weight • font • justification-ratio • letter-spacing • outline-color • outline-width • overprint • requote • suppress-ligatures • text-decoration • text-transform • align • background-color • background-image-dpi • background-image-position • background-image • background-pdf • border-color • border-style • border-width • border • clear • corner-radius • display • float • font-size • height • href • left • line-cap • line-height • line-join • margin • onmouseover • overflow • padding • page-break-after • page-break-inside • position • rotate • size • top • vertical-align • visibility • white-space • width • class • colorspace • direction • id • lang
See: | b i nobr o p strike tt u symbol zapf

The span tag delimits an arbitrary piece of text. You can apply styles to the span of text. In many cases it's more convenient to use one of the predefined spans (b, i, o, u, strike, tt, zapf, symbol or nobr), but the span tag gives more flexibility, especially when given a class attribute and used with a CSS stylesheet.

    <span font-family="Helvetica" font-style="italic outline">
      This is in outlined Helvetica Italic
    </span>