DAISY—Structure Guidelines: Elements, Inline Elements, Information Object Span

DAISY—Structure Guidelines: Elements, Inline Elements, Information Object Span

Information Object

Span

Definition

A generic tag to define a section of inline text. The <span> element can be used to tag one or more letters or words, a phrase, a sentence, or even a series of sentences, but not an entire paragraph, which comprises a block of text. (The <div> element is the generic counterpart to <span> for block use.) <span> is often used to mark inline text to which styles are to be applied. The class attribute may be used to provide detail on its use, as in the example below.

Markup

Use when no suitable tag exists for an unusual situation.

Syntax

<span>...</span>

Example

<p>The most common errors are repeti<span class="typo">i</span>tions of letters and <span class="typo">and</span> words.</p>

Tags: DAISY