Picto thématique

Rule n° 131 - Each link has a title in the source code.

A link consists of at least one Url and a label. If you do not enter a label, you have a link, but it is meaningless and may not be perceived or misunderstood by users and search engines.

#Accessibility #Links #Development

Goal

  • Prevent users from only having a hard-to-understand URL as a label.
  • Avoid links that become invisible when CSS styles or background images are not handled.
  • Improve the accessibility of content for people with disabilities.

Implementation

Give each link a text label (between the opening and closing tags of element a) or, if necessary, via the text alternative of an img or object element, etc.

Do not prevent the display of the text caption of element a by replacing it with a CSS style effect (background image).

_ x000D_

Find out more:

Control

Detection of empty links requires the generated code to be examined in order to check the content actually present in the a tag, in the alternative img tag in case of an image-link or in the alternative object and embed elements, etc.

In each page checked:

  • Check that each text link has a label displayed when CSS styles are disabled.
  • Check that each image link has a label displayed when images are disabled;

In the case of HTML links, also verify that the label is displayed when only the colours are deactivated.

By Opquast - Read the license


Discover Opquast training and certification

The objective of these rules and the Opquast community mission is ‘making the web better’ for your customers and for everyone! Opquast rules cover the key major areas of risk that can negatively affect website users such as privacy, ecodesign, accessibility and security.

Opquast training has already allowed over 14,500 web professionals to have their skills certified. Train your teams or your students, contact us