liveBook · Manning

Empty link

As explained in Architecting Accessibility

An empty link is a hyperlink that lacks a programmatically determinable accessible name.

An empty link has no accessible name. A screen reader may announce only “link,” leaving someone unable to tell where it goes. This commonly happens when a login, profile, cart, or social-media link contains only an icon or image. section 5.4

<a href="/account" aria-label="Login"> #A
  <svg aria-hidden="true">...</svg>
</a>

For an icon-only login link, aria-label supplies the name while the SVG is hidden from assistive technology. section 5.4

<a href="/account">
  <svg aria-hidden="true">...</svg>
  Login #A
</a>

Visible “Login” text names the link for everyone. For an image-only link, meaningful alt text can serve the same purpose. section 5.4

How Architecting Accessibility covers it

How deep it goes
Defines empty links and shows naming repairs with visible text, alt text, and aria-label; does not explain naming algorithms.
Examples
Contrasts a login SVG named with aria-label against one named with visible “Login” text.
What it assumes
Assumes familiarity with HTML links and icon markup while explaining what makes a link’s name available to assistive technology.
What you can do after
Diagnose/debug with it: identify unnamed links and give them visible text, meaningful image alt text, or an aria-label.
How it connects
Connects accessible names with screen readers, alternative text, ARIA labels, and WCAG 2.2 Name, Role, Value.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.