Skip to main content
Raasta
SeriousWCAG 2.4.4 · Level AWCAG 4.1.2 · Level Alink-name

Link has no accessible name

A link with no text (an icon, an image without alt, or an empty anchor) is announced only as “link”. Put meaningful text inside it, or give the image inside it alt text that says where the link goes.

Who it hurts

Screen reader users, who often browse a list of links, and voice control users.

Social icons, logo links and “card” links wrapping an image are frequent offenders. In a links list they all read as “link, link, link”.

How to fix it

Pick your stack. Review every change before you ship it.

Before

<a href="https://instagram.com/shop"><svg …></svg></a>

After

<a href="https://instagram.com/shop" aria-label="Instagram"><svg aria-hidden="true" …></svg></a>

Check it by hand too

Open your screen reader’s links list. Every link should make sense on its own or with its sentence.

Automated checks find a large share of accessibility problems, but not all of them. Passing this check does not on its own make a page compliant.

WCAG reference