Forms
The <optgroup> element groups <option> elements with a common label. The common label is specified using the "label" attribute.
Attributes for <optgroup>
Type | Attribute List |
'Standard' Attributes | "disabled" and "label" |
New HTML5 Attributes | "writingsuggestions" |
Recommended Links
Accessibility Information & Tips
- In <select> elements, use <optgroup> to group related <option> elements. Label the option groups with the "label" attribute. Avoid using dummy list entries to delimit groups. Visit https://www.w3.org/TR/WCAG20-TECHS/H85 for more information.
Search Engine Links (for more information)