Option Group

End Tag: Required
Support Key: 2 | 3 | 3.2 | 4 | IE | M | N | O
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 OPTGROUP element allows authors to group selection list choices into a hierarchy. This is particularly helpful to non-visual user agents when large numbers of options are available to choose from. Possible rendering of this element could be a collapsible hierarchy list of OPTION element content or some presentation conveying the hierarchy relationship of the OPTION contents. Browsers not supporting this element will "see" only a traditional flat list of OPTION elements. The LABEL attribute for this element is used to provide shorter labels for the nodes of the hierarchical menus.

Common Attributes
%Core%
2 | 3 | 3.2 | 4 | IE | M | N | O
%Events%
2 | 3 | 3.2 | 4 | IE | M | N | O
%Language%
2 | 3 | 3.2 | 4 | IE | 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? Yes
Description:
This specifies a shorter alternate label for use in identifying the sub-group of options.
Values: Alphanumeric characters
Example John and Judy's
<select NAME="Familytree">
<option LABEL="Bill" VALUE="bill">Bill Smith
<option LABEL="Mary" VALUE="mary">Mary Smith
<optgroup LABEL="Joe">
    <option VALUE="michael">Michael Smith
    <option VALUE="susan">Susan Smith
    <option VALUE="howard">Howard Smith
</optgroup>
</select>
Parent Model
<select> | <optgroup>
Content Model
<option> | <optgroup>
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...