joaooliveira
Crownpeak (Retired)

If an image is the only content in a link it must have "alt" text

Why is this important?

There are certain reasons why an image is used as a link. We need to remember that some users may not be able to visually see an image and instead may be relying on screen readers to identify the link. This is why an alternative text should be added that describes the destination page of the link. This way these users will be provided the appropriate information to know that the image is a link and where the link will lead to.

How can I resolve this issue?

Add an alt attribute to the image inside the link

What topics do this checkpoint affect?

  • Accessibility (WCAG 2.1 Level A, 2.4.4)
  • Legal

Can you explain how this checkpoint works?

The checkpoint examines the page and reports if any <a href> element, which has an image as the link where the link itself does not have alt text.

References

Can't find what you are looking for?

Find Answers

Search our DQM Forum to find answers to questions asked by other DQM users.

Ask a Question

No luck? Ask a question. Our Product and Support teams are monitoring the Forum and typically respond within 48 hours.

Ask a Question