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).
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.
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 19,000 web professionals to have their skills certified. Train your teams, contact us
We offer a 1 hour free discovery module.