How to fix: svg images without text
WCAG 2.2 success criterion 1.1.1 (level A)
Why it matters
Screen readers skip or misread meaningful graphics.
How to fix
Give role="img" SVGs an aria-label or a <title>.
<svg role="img" aria-label="Company logo">…</svg>
Test it yourself
- Inspect inline SVG icons: meaningful ones need role="img" plus a name, decorative ones aria-hidden="true".
Common mistakes
- role="img" on decorative icons without a name.
- A <title> inside the SVG that only says the file name.
Check your own site
Find this and other problems on your website in 30 seconds, free.