[aria-*] attributes are valid and not misspelled

Accessibility attributes use valid, recognized names.

On this page

Impact

ScanGov impact ratings

About

Assistive technologies, like screen readers, can't interpret ARIA attributes with invalid names.

Risks

Screen readers ignore misspelled or unrecognized attribute names.

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: aria-toggle does not exist in the ARIA spec -->
<button aria-toggle="true">Menu</button>

Passing pattern:

<!-- Pass: aria-pressed is the correct attribute for toggle buttons -->
<button aria-pressed="false">Mute</button>

Error

ScanGov messaging when a site fails a standard:

Failed: [aria-*] attributes are valid and not misspelled

Guidance

Indicators

On this page