Elements with role="img" have no text alternative

Automated check role-img-alt, run with axe-core

WCAG
1.1.1 Non-text Content (Level A)
Severity
Serious: completable, but painful
Typical effort
Quick win, under 1 hour
Category
Content

Who this affects

Screen reader users.

Why it matters

Icon fonts and CSS background images marked as images are announced as "image" with no description.

How to fix it

Add aria-label or aria-labelledby to the element with role="img", or hide purely decorative ones with aria-hidden="true".

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: Content

All checks