Checkpoints - 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 Level A, 2.4.4; WCAG 2 Level AAA, 2.4.9; WCAG 2 Level A, 4.1.2)
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.