Inline Text Container | WebReference

Inline Text Container

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Inline Text Container

<span> ... </span>

Description: Designates an inline section of text to which style sheet properties are applied.

Browser Compatibility: NN: 4.0+ / IE: 3.0+

Attributes:
  • class
  • dir
  • id
  • lang
  • onclick
  • ondblclick
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup
  • style
  • title

Code Example:

<span style="background: red">This text would have a red background</span>



Created: March 15, 2005

URL: http://webreference.com/html/reference/specs/