ARIA labels placed on elements that cannot carry them

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

WCAG
4.1.2 Name, Role, Value (Level A)
Severity
Serious: completable, but painful
Typical effort
Quick win, under 1 hour
Category
Code quality

Who this affects

Screen reader users.

Why it matters

An aria-label on a plain <div> or <span> is ignored by most screen readers, so the information it was meant to convey never arrives.

How to fix it

Move the label onto an interactive element or one with a suitable role, or make the text visible instead.

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