Language: EN

Links without a readable name

Message shown by axe and Lighthouse: Links must have discernible text · link-name · WCAG 2.4.4, 4.1.2

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.

CountryShops checkedWith this failure
Poland8447 (56%)
Czechia8661 (71%)
Slovakia9464 (68%)
Croatia9268 (74%)
Total, wave 1356240 (67%)
Germany12375 (61%)
Austria9758 (60%)
Total, wave 2220133 (60%)
Netherlands10062 (62%)
Spain9456 (60%)
France10168 (67%)
Italy10167 (66%)
Total, wave 3396253 (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

Find this error on your website

Run a free check of any page — results in seconds, with fix instructions.

Check a page for free

All accessibility errors

Order a paid plan

Leave your email and we'll contact you as soon as the plan can be ordered.