15 out of 29 rated this helpful - Rate this topic

span element | span object

[This documentation is preliminary and is subject to change.]

Specifies an inline text container.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 7.5.4

Standards information

HTML information

Closing Tagrequired
CSS Displayinline

DOM Information

Inheritance Hierarchy

 Node
    span
 Element
    span

Remarks

The SPAN element is especially useful for applying cascading style sheets (CSS) styles.

Examples

This example uses the SPAN element to create an inline text container that changes the color of a word to blue.


<P>This paragraph contains a single <SPAN STYLE="color: blue">blue</SPAN> word.

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ