select element role semantics

Definition select elements must only have role values of listbox (default) or menu.
Purpose
  • The select element has a default role of listbox and the browser natively supports the behavior of being part of the tab order of the page (e.g. tabindex=0) and will repsond to click events and the enter key.
  • When select elements only need to use the role attribute when it semantics are a menu instead of a listbox.
Required Yes for HTML4 Legacy Techniques ruleset mapping
WCAG 2.0 Success Criteria

4.1.2 Name, Role, Value (Level A, Primary Success Criterion)

Rule Category Forms
Scope Element
Target Resources select] elements
  • select
Techniques
  • The select element's default role of listbox can only be overridden with menu.
Informational Links