Selection List Option

End Tag: Optional
Support Key: 2 | 3 | 3.2 | 4 | IE1 | M2A1 | N1 | O2.1
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson [bloo@blooberry.com] =
Main Index | Element Tree | Element Index | HTML Support History


What is it?
The OPTION element is only allowed within the SELECT element and indicates an individual choice or element in the Selection List. The end tag is not necessary, as it is implied by either the next occurrence of an OPTION tag or the end SELECT tag.

Common Attributes
%Core%
2 | 3 | 3.2 | 4 | IE4B2 | M | N | O
Details: TITLE is not supported in IE. CLASS, ID, and STYLE in IE4B2.
%Events%
2 | 3 | 3.2 | 4 | IE | M | N | O
%Language%
2 | 3 | 3.2 | 4 | IE4 | M | N | O

Specific Attributes
Disabled
2 | 3 | 3.2 | 4 | IE | M | N | O
Required? No
Description:
This is a stand-alone attribute which indicates the element is initially non-functional.
Values: NA
Label
2 | 3 | 3.2 | 4 | IE | M | N | O
Required? No
Description:
When a SELECT list uses the OPTGROUP elements to create a hierarchy of list values, this attribute indicates a shorter label that should be used in place of the content of the OPTION element.
Values: Alphanumeric characters
Selected
2 | 3 | 3.2 | 4 | IE1 | M2A1 | N1 | O2.1
Required? No
Description:
This is a stand-alone attribute which indicates that this Option is initially selected.
Values: NA
Value
2 | 3 | 3.2 | 4 | IE1 | M2A1 | N1 | O2.1
Required? No
Description:
Indicates the value to be returned to the form processing script if the Option is chosen. The default VALUE if none is present is the content of the OPTION element.
Values: An alphanumeric string
Example
<form>
   <select NAME="list1" SIZE=3 MULTIPLE>
      <option VALUE="opt1">option1
      <option VALUE="opt2">option2
      <option SELECTED VALUE="opt3">option3
   </select>
</form>
Parent Model
<optgroup> | <select>
Content Model
%Text%
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...