Form Field Label | WebReference

Form Field Label

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Form Field Label

<label> ... </label>

Description: Provides an id label for form elements.

Browser Compatibility: NN: 6.2+ / IE: 4.0+ / Opera: 4+

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

Code Example:

<label id="firstname">
    <input type="text" id="firstname">
</label>



Created: March 15, 2005

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