Language: EN

SVG graphics without a text alternative

Message shown by axe and Lighthouse: <svg> elements with an img or image role must have alternative text · svg-img-alt · WCAG 1.1.1

What it means and why it matters

SVG icons with role="img" but no name are announced without meaning (WCAG 1.1.1).

How to fix it

Add a <title> inside the SVG or an aria-label; hide purely decorative SVGs with aria-hidden="true".

Code example

Before

<svg role="img" viewBox="0 0 24 24"><path d="…"/></svg>

After

<svg role="img" aria-labelledby="t1" viewBox="0 0 24 24"><title id="t1">Secure payment</title><path d="…"/></svg>

Find this error on your website

Run a free check of any page — results in seconds, with fix instructions.

Check a page for free

All accessibility errors

Order a paid plan

Leave your email and we'll contact you as soon as the plan can be ordered.