SPAN - Generic Inline Container

Syntax <SPAN>...</SPAN>
Attribute Specifications
Contents
Contained in ,

The SPAN element is a generic inline container. SPAN carries no structural meaning itself, but it can be used to provide extra structure through its , , , and attributes. are often used to suggest a presentation for a given class or ID.

SPAN should only be used where no other HTML provides a suitable meaning. If a presentation such as bold or italic text would be suitable on visual browsers, authors may prefer to use an appropriate . For example:

  1. <P><SPAN LANG=fr>La Révolution Tranquille</SPAN> shook Quebec in the early 1960's.
  2. <P><I LANG=fr>La Révolution Tranquille</I> shook Quebec in the early 1960's.

These examples are identical in meaning, but the second example uses the element to suggest italic text.

is a block-level equivalent of SPAN for containing such as and .

More Information