[role] values are valid

Accessibility roles use valid, recognized values.

On this page

Impact

ScanGov impact ratings

About

ARIA roles must have valid values in order to perform their intended accessibility functions.

Risks

Screen readers ignore invalid roles and treat elements as plain text.

Why it's important

Ensures assistive technologies like screen readers can correctly interpret and announce page elements to users with disabilities.

User stories

As a screen reader user, I want ARIA attributes to be correctly implemented so that I can understand the purpose and state of interactive elements.

Code

Failing pattern:

<!-- Fail: non-existent or abstract ARIA role -->
<div role="section">...</div>

Passing pattern:

<!-- Pass: valid ARIA role -->
<div role="region" aria-label="Search results">...</div>

Error

ScanGov messaging when a site fails a standard:

Failed: [role] values are valid

Guidance

Indicators

On this page