Sitemorse - building web confidence

Follow us on Twitter
LOG IN
Commercial benefits are just the tip of the iceberg

Knowledge base


Accessibility - How to fix "Same text used for links to different URLs"

Sitemorse will report a 'wcag10/linktarget' diagnostic when the same link text is used for different target URLs. An important aspect of link text is its uniqueness. Typically a web page may link to several resources, either directing the user to different parts of the same page, or to different pages altogether.

Each link to a different target must have a unique description text, allowing users to quickly, and unambiguously, locate content on a page.

Take, for instance, a page which links to company reports:

<p>Company ABC <a href="reportABC.html">report</a></p> <p>Company XYZ <a href="reportXYZ.html">report</a></p>

The link text in both cases is simply "report", the description is not unique.

To resolve this alter the link text to ensure uniqueness:

<p><a href="reportABC.html">Company ABC report</a></p> <p><a href="reportXYZ.html">Company XYZ report</a></p>

Alternatively Sitemorse also takes into account the 'title' attribute. Thus the following example is also permitted:

<p>Company ABC <a href="reportABC.html" title="Company ABC">report</a></p> <p>Company XYZ <a href="reportXYZ.html" title="Company XYZ">report</a></p>

In this example the first solution is certainly desirable.

Further information:

HTML 4.01 Specification - Chapter 12 Links