How to fix links with no discernible text

WCAG 2.4.4 and 4.1.2 (Link Purpose, Name Role Value)

What is wrong

A link that contains only an icon or an image without alt text has no name, so assistive technology announces just "link".

How to fix it

Put readable text inside the link, or add an aria-label or alt text that describes where the link goes.

Before and after

<a href="/cart"><i class="icon-cart"></i></a>
<a href="/cart" aria-label="View cart"><i class="icon-cart"></i></a>

The free scan takes under 30 seconds with no signup and lists every issue of this kind on your page. If you would rather not fix them yourself, the full report comes with a prioritized fix list.

More fix guides

General guidance from automated-testing rules; it is not legal advice. Automated scan using axe-core. Automated tools can only detect part of what accessibility standards (WCAG) cover, so a clean result isn't a guarantee of accessibility and this report is not legal advice or a compliance certification.