From http://www.w3schools.com (Copyright Refsnes Data)
ExampleGroup together related options with <optgroup> tags:
|
The <optgroup> tag is used to group together related options in a select list.
If you have a long list of options, groups of related options are easier to handle for the user.
The <optgroup> tag is supported in all major browsers.
NONE
DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
Attribute | Value | Description | DTD |
---|---|---|---|
label | text | Specifies a description for a group of options | STF |
Attribute | Value | Description | DTD |
---|---|---|---|
disabled | disabled | Specifies that an option group should be disabled | STF |
id, class, title, style, dir, lang, xml:lang, tabindex |
For a full description, go to Standard Attributes.
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event Attributes.
From http://www.w3schools.com (Copyright Refsnes Data)