ARIA roles that do not suit the element

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

WCAG
Best practice: a recommendation, not a WCAG success criterion
Severity
Moderate: a degraded experience
Typical effort
Quick win, under 1 hour
Category
Code quality

Who this affects

Screen reader users.

Why it matters

Overriding an element with an unsuitable role, such as role="button" on a heading, removes its native meaning and can make the page structure confusing.

How to fix it

Remove the role, or use an element whose native meaning matches what it does.

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