Selectable Option | WebReference

Selectable Option

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Selectable Option

<option> ... </option> (opt.)

Description: Indicates items in a selectable list.

Browser Compatibility: NN: 1.0+ / IE: 2.0+ / Opera: 4+

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

Code Example:

<select name="colors">
    <option>Blue</option>
    <option>Green</option>
</select>

XHTML Notes: The closing </option> element is required.




Created: March 15, 2005

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