THE GITHTML FIELD GUIDE

Give icon-only document links an understandable name

An icon-only link needs an accessible name that describes its destination or purpose. Prefer visible link text when space allows, and keep any aria-label consistent with visible wording. Hide redundant decorative graphics from assistive technology without hiding the link itself, then inspect the computed name rather than assuming the icon's filename supplies one.

Understand the access barrier

A chain symbol can mean copy, permalink, or open another page. Its shape does not establish the action. Naming should resolve that ambiguity rather than repeat the visual description link icon.

Use a deliberate document pattern

Use the same destination wording for sighted and nonvisual readers. If the icon is inside a labeled link, decorative SVG or emoji should not add confusing extra speech. Avoid overriding useful visible text with an unrelated aria-label.

  1. Name the destination rather than the shape of the icon.
  2. Prefer visible text and use ARIA only where native naming is insufficient.
  3. Inspect the computed accessible name after hiding redundant graphics.
html
<a href="#findings" aria-label="Link to findings"><span aria-hidden="true">#</span></a>

Check the actual reading experience

Review the links list in assistive technology and ask whether each destination can be distinguished from neighboring links.

Distinguish navigation from an action

Consider a report with a chain icon beside each heading and a download icon in its toolbar. Those controls have different purposes and should not all be named Link. A heading link might be named Link to performance findings, while a file download might be named Download the complete results CSV. If the chain control actually copies an address to the clipboard, it is an action rather than navigation and should use an appropriate button implementation with feedback, not a misleading anchor label.

A visible label benefits readers who cannot infer the symbol, including people unfamiliar with a particular icon convention. If space truly requires an icon-only treatment, give the interactive element the name and hide only the redundant graphic. An SVG title, image alternative, visible text, aria-labelledby, and aria-label can interact in the naming calculation; adding all of them is not automatically better. Inspect the final accessible name to avoid duplicated phrases or a hidden label overriding useful visible wording.

Test the links outside their surrounding paragraphs, because screen-reader link navigation can present them as a separate list. Several entries called Open provide little help, even if each sits beside a different report title visually. Make each name specific enough to identify the destination without turning it into an entire sentence of instructions. Then check focus visibility and touch target size separately: a correctly named tiny control can still be difficult to operate. If the document is localized, review accessible names alongside visible labels so the two do not drift into different languages or describe different destinations.

Sources and further reading

AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.

All accessible documentation guides →

Read as MarkdownAll guides

Give icon-only document links an understandable name · gitHtml