ARIA attributes used on the wrong elements

Automated check aria-allowed-attr, run with axe-core

WCAG
4.1.2 Name, Role, Value (Level A)
Severity
Moderate: a degraded experience
Typical effort
Moderate, 1 to 4 hours
Category
Code quality

Who this affects

Screen reader users.

Why it matters

Invalid combinations are ignored or misreported, so the accessibility information you intended to provide never arrives.

How to fix it

Only use ARIA attributes permitted for the element role. Remember the first rule of ARIA: prefer native HTML elements over ARIA wherever possible.

Check your own website

The free scan tests 3 pages against WCAG 2.2 A and AA in about 30 seconds. No sign-up.

Scan my website — free

Related checks: Code quality

All checks