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.
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
<selectNAME="Familytree">
<optionLABEL="Bill"
VALUE="bill">Bill Smith
<optionLABEL="Mary"
VALUE="mary">Mary Smith
<optgroupLABEL="Joe">
<optionVALUE="michael">Michael Smith
<optionVALUE="susan">Susan Smith
<optionVALUE="howard">Howard Smith
</optgroup>
</select>