tech-docs-gem
tech-docs-gem copied to clipboard
Images with blank alt text shouldn't be wrapped in anchor tags
What should change
Images with blank alt text shouldn't be wrapped in anchor tags.
User need
All images are wrapped in anchor tags which link to the image on its own, including images with blank alt text.
When the images appear in-page, we tend to provide the information in them as text in the page. For example:
https://docs.publishing.service.gov.uk/manual/architecture-deep-dive.html
But that still leaves the link with an empty accessible name, because its contents are the image. Based on this WCAG rule, that breaks the following success criteria: