Role listbox

select element role semantics

Rule IDDefinitionPurposeMappingsWCAG Success CriteriaRule CategoryScopeTarget ResourcesTechniquesInformational Links
Role 13
select elements must only have role values of listbox [default] or menu.
  • 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.
  • HTML4 Legacy Techniques [Required]
  • HTML5 and ARIA Techniques [Required]

4.1.2 Name, Role, Value [Level A, Primary Success Criterion]

Other Related Success Criterion:

  • 4.1.1 Parsing [Level A]
Forms
Element
select] elements
  • select
  • The select element's default role of listbox can only be overridden with menu.
  • HTML 5 Specification: The select element

Video liên quan

Chủ Đề