Option groups must have a label
Rule
optgroup-label· Forms · impact serious · Static + live
Why it matters
An
How to fix
Add label="…" (or aria-label) to each
Example
<select><optgroup><option>UTC+1</option></optgroup></select>
<select><optgroup label="Europe"><option>UTC+1</option></optgroup></select>
WCAG success criteria
1.3.1 Info and Relationships — Level A
Structure and relationships conveyed visually (headings, lists, tables, labels, groups) must also be available programmatically.
4.1.2 Name, Role, Value — Level A
Every UI component must expose a correct name, role, and (where relevant) state/value to assistive technology.
Standards
This rule contributes to the following standards:
WCAG A EN 301 549
| Standard | Criteria |
|---|---|
| EN 301 549 | 9.1.3.1, 9.4.1.2 |