Identical link text should have the same purpose

Accessibility isn’t only about avoiding violations — it’s about ensuring your product can be used confidently by everyone. This guide explains the principle of this rule, shows what goes wrong in real-world code, and provides a verified fix that meets WCAG and the European Accessibility Act (EAA).

Why this matters and how to fix it

Why this matters

When multiple links have the same text but different destinations, users can’t tell them apart.

How to fix this issue

Ensure identical link text leads to the same destination/purpose, or differentiate the visible text/accessible name.

Automated detection · Manual review recommended

Developer guidance

Lint for repeated link text pointing to different URLs. Encourage descriptive link copy in content guidelines.


Code examples

Incorrect Implementation

<a href="/buy">More info</a><a href="/subscribe">More info</a>

Correct Implementation

<a href="/buy">Buy details</a><a href="/subscribe">Subscription info</a>
eu icon getwcag

Trusted by organizations across Europe working toward WCAG and EAA conformance