Elements use only permitted ARIA attributes

Accessibility attributes are not used where they are prohibited.

On this page

Impact

ScanGov impact ratings

About

Using ARIA attributes in roles where they are prohibited can mean that important information is not communicated to users of assistive technologies.

Risks

Screen readers ignore prohibited attributes, hiding important information.

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-label prohibited on elements with role=presentation -->
<div role="presentation" aria-label="decorative divider"></div>

Passing pattern:

<!-- Pass: remove prohibited attribute -->
<div role="presentation"></div>

Error

ScanGov messaging when a site fails a standard:

Failed: Elements use only permitted ARIA attributes

Guidance

Indicators

On this page