Accessibility Wiki

Links must have discernible text

Rule link-name · Links & buttons · impact serious · Static + live

↩ Back to the rules index · WCAG cross-reference

Why it matters

A link with no accessible name (e.g. an icon-only or image link with no alt) is announced as "link" with no destination, and is useless to screen-reader and speech users.

How to fix

Provide text inside the link, alt text on a link image, or aria-label describing where the link goes.

Example

✕ Fails
<a href="/profile"><svg aria-hidden="true"></svg></a>
✓ Passes
<a href="/profile" aria-label="Your profile"><svg aria-hidden="true"></svg></a>

Example

✕ Fails
<a href="/article"></a>
✓ Passes
<div aria-hidden="true"><a href="/article" tabindex="-1">Read article</a></div>

Links inside an aria-hidden subtree (e.g. cloned carousel slides) are out of the accessibility tree and are not checked here.

WCAG success criteria

The purpose of each link should be clear from its text (or its programmatically-associated context).

Understanding 2.4.4

4.1.2 Name, Role, Value — Level A

Every UI component must expose a correct name, role, and (where relevant) state/value to assistive technology.

Understanding 4.1.2

Standards

This rule contributes to the following standards:

WCAG A EN 301 549 Section 508 Trusted Tester ACT

Standard Criteria
Section 508 1194.22(a)
EN 301 549 9.2.4.4, 9.4.1.2
Trusted Tester v5 6.a
ACT (WCAG SC) 2.4.4, 4.1.2

References