Links must have an accessible name
Every link must have a text name that screen readers can announce, so users know where it leads. Image links, icon links and empty anchors are the usual causes.
| Rule ID | link-name |
|---|---|
| Impact | Serious |
| Success criterion |
2.4.4 Link Purpose (In Context) · A 4.1.2 Name, Role, Value · A |
| Standards | WCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549 |
| Fixed with a text: from the page or written by AI |
Example
<a href="https://www.instagram.com/greenleafbakery">
<i class="icon icon-instagram"></i>
</a>A screen reader announces “link” or reads out the whole web address.
<a href="https://www.instagram.com/greenleafbakery">
<i class="icon icon-instagram" aria-hidden="true"></i>
<span class="visually-hidden">Greenleaf Bakery on Instagram</span>
</a>A screen reader announces “Greenleaf Bakery on Instagram, link”.
Why it matters
Screen reader users often browse a page by its list of links or by tabbing from link to link. A link without a name is read as “link”, or the screen reader falls back to spelling out the URL, which can be long and meaningless. The user cannot decide whether to follow it.
Speech recognition users say a link's text to click it, which is impossible when there is none. Keyboard users still reach the empty link with Tab, so it adds an unexplained stop on the way.
Link text is also a strong signal for search engines about the target page, so meaningful names help both accessibility and SEO.
How to fix it
Text link. Write text that makes sense on its own:
<a href="/menu">See our lunch menu</a>
Image link. The alt of the image becomes the link name, so describe the destination:
<a href="/"><img src="logo.png" alt="Greenleaf Bakery home"></a>
Icon link (icon font or inline SVG). Hide the icon and add text, either visible or visually hidden:
<a href="/cart">
<svg aria-hidden="true" focusable="false">…</svg>
<span class="visually-hidden">Cart</span>
</a>
aria-label="Cart" on the <a> also works when you cannot add an element.
Empty anchors used as jump targets. Remove href or move the id onto the target:
<h2 id="reviews">Reviews</h2>
Duplicate links (an image and a text link to the same product next to each other). Merge them into one <a> around both, or hide the image link with tabindex="-1" and aria-hidden="true".
Checklist
- Give every link text that names its destination.
- Describe the destination in the alt of image links.
- Add hidden text or aria-label to icon links.
- Remove empty anchors or merge duplicate links.
How the check works
The check looks at <a href> elements and elements with role="link" that are not hidden. It passes when the link has a name from its text, an image alt, aria-label, aria-labelledby or title. It fails when the computed name is empty. Whether the text is meaningful, rather than “click here”, needs a manual review.
Resources
Updated October 27, 2026