Links without a readable name
What it means and why it matters
Icon links (cart, social, logo) without text are announced only as "link". Users can't know where they lead (WCAG 2.4.4, 4.1.2).
How to fix it
Add visible text or an aria-label, e.g. aria-label="Shopping cart". For image links, give the image a meaningful alt text.
Code example
Before
<a href="/cart"><svg class="icon-cart"></svg></a>
After
<a href="/cart" aria-label="Shopping cart (2 items)"><svg class="icon-cart" aria-hidden="true"></svg></a>
In our study
Share of online shop home pages on which axe-core automatically detected at least one failure of this rule. The number of shops is in brackets.
Links without a readable name
| Country | Shops checked | With this failure |
|---|---|---|
| Poland | 84 | 47 (56%) |
| Czechia | 86 | 61 (71%) |
| Slovakia | 94 | 64 (68%) |
| Croatia | 92 | 68 (74%) |
| Total, wave 1 | 356 | 240 (67%) |
| Germany | 123 | 75 (61%) |
| Austria | 97 | 58 (60%) |
| Total, wave 2 | 220 | 133 (60%) |
| Netherlands | 100 | 62 (62%) |
| Spain | 94 | 56 (60%) |
| France | 101 | 68 (67%) |
| Italy | 101 | 67 (66%) |
| Total, wave 3 | 396 | 253 (64%) |
Where the fix usually lies (a general guide, not a measurement): theme code (icons and header); shop content (link texts and product card captions); third-party code and apps (widgets and sliders).
Method, limits and all results: Online shop study.
Other common errors in online shops
- Text has too little contrast
- Touch targets are too small
- Images without alternative text
- Buttons without a readable name
Find this error on your website
Run a free check of any page — results in seconds, with fix instructions.