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.
The Sitemorse Knowledge base is the repository of knowledge about the Sitemorse system.
Every time a new feature is added, a question asked or anything our technical team believe might be appropriate is recorded here.
- Understanding the tests conducted by Sitemorse
- Interpreting Sitemorse Reports
- Useful Technologies
- Sitemorse Surveys
- Function Diagnostics
- Accessibility Diagnostics
- Code quality
- Code quality Diagnostics
- Email Diagnostics
- Metadata Diagnostics
- Customer Service and Billing Questions
- Updates and development within Sitemorse