Skip to content
AITroveRead. Build. Understand.
Make this comfortable

HTML linked image alt: name the destination or avoid repetition

Last updated: 5 Oct 20267 min read
tutorial
IntermediateBy AITrove Editorial

The alternative text for an image used as a link should convey the link's purpose when the image provides its only name.

When it earns its place

A case evidence tile links to a scan. If the scan thumbnail is the entire link, its alt text names the destination rather than listing visual details irrelevant to navigation. If visible link text already says the same thing, the thumbnail can use an empty alt to avoid repeating the name. The full evidence page still needs a useful description of the scan itself; a thumbnail's link label cannot carry every fact in the document.

html
<p><a href="/cases/C-47/evidence/seal-scan"><img src="/images/C-47-seal-thumb.webp" alt="Open seal scan for case C-47" width="240" height="160"></a></p>
<p><a href="/cases/C-47/evidence/log"><img src="/images/C-47-log-icon.webp" alt="" width="32" height="32"> Open intake log for case C-47</a></p>

Browser boundary

A broken image still needs a usable link name. The destination route must exist and enforce access to case evidence; descriptive alt text is not an access control or a replacement for a document transcript.

Cost and maintenance

Good alternatives add only a few words. The real cost is editorial upkeep when a thumbnail's destination changes but its link name does not, causing misleading navigation for nonvisual users.

Common Mistakes

  • Do not leave an image-only link with empty alt text.
  • Do not repeat visible link text verbatim in a decorative thumbnail's alt.
  • Do not use filenames as the link's accessible name.

Connected lessons

html
accessibility
Storage details