role must be valid

Rule ID Widget 3
Definition role attribute value must be a widget, section, landmark or live region role.
  • Elements with role attributes describe the section of a document (i.e landmarks) and the types of interactive elements (i.e. widgets) to users of assistive technologies, especially screen reader users.
  • HTML4 Legacy Techniques (Required)
  • HTML5 and ARIA Techniques (Required)
WCAG Success Criteria

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

Rule Category Widgets/Scripting
Scope Element
Target Resources Elements with role attribute values
  • [role]
  • Use ARIA landmark roles to describe the sections of a web page.
  • Use ARIA widget roles to describe interactive elements on a web page
Informational Links