# axe link-name: Link without a discernible name

The finding means a link has no name that a screen reader can announce. Usually it contains only an icon, an image without alternative text, or text that is hidden. Give it a name that states the destination: as text inside the link, as the image's alt, or as an aria-label.

## The message

- Identifier: `link-name`
- Type of check: automatic
- Severity: serious
- Success criteria: [WCAG 2.4.4 Link Purpose (In Context)](https://barrierepruefung.de/en/knowledge/wcag/2-4-4-link-purpose-in-context), [WCAG 4.1.2 Name, Role, Value](https://barrierepruefung.de/en/knowledge/wcag/4-1-2-name-role-value)
- Meaning: The link has no accessible name.
- Impact: The link target is not identifiable without visual context.
- Fix: Give the link meaningful text or an aria-label.

## What the rule checks

axe looks at every `<a>` with an `href` and asks whether it has an accessible name. The name can come
from the link's content, meaning text or the alternative text of an image inside it, or from
`aria-label`, `aria-labelledby` or a non-empty `title`. If none of these is present, the rule reports
the link.

It does not check whether the name fits the destination. A link named "image" passes this rule and
still tells nobody anything.

## Common causes

- **Only an icon.** Social media links, shopping basket, search: the link holds an `<svg>` without a
  title, or a glyph from an icon font such as `<i class="icon-facebook"></i>`.
- **Image without alternative text.** The logo links to the home page, but the image has `alt=""`
  or no `alt` at all. The W3C lists this as a failure (F89).
- **Hidden text.** The link text sits in an element with `display: none` or `aria-hidden="true"`,
  for instance because it is meant to appear on narrow screens only.
- **Background image instead of content.** The icon is added in CSS as a `background-image`, and the
  link itself is empty.
- **Reference to nothing.** `aria-labelledby` points to an `id` that does not exist on the page.

## How to fix it

For an icon link, the link gets the name and the icon is hidden from screen readers. Text that is
only visually hidden is the most robust option:

```html
<a href="https://www.instagram.com/example-club/">
  <svg aria-hidden="true" focusable="false" width="24" height="24">…</svg>
  <span class="visually-hidden">The club on Instagram</span>
</a>
```

```css
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
```

`aria-label` on the link is shorter (ARIA8):

```html
<a href="/basket" aria-label="Shopping basket">
  <svg aria-hidden="true" focusable="false">…</svg>
</a>
```

If an image is the only content, its alternative text describes the destination, not the picture
(H30):

```html
<a href="/">
  <img src="/logo.svg" alt="Springfield home page">
</a>
```

If visible text sits next to the icon, that text is the name, and an extra `aria-label` is
unnecessary. If you add one anyway, it must contain the visible text, or the link fails
2.5.3 Label in Name (Level A).

When link text describes the purpose well enough is explained on the page
[about WCAG 2.4.4](https://barrierepruefung.de/en/knowledge/wcag/2-4-4-link-purpose-in-context).

## Sources

- [Deque University: link-name (axe-core 4.13)](https://dequeuniversity.com/rules/axe/4.13/link-name), retrieved on 2026-11-27
- [W3C Techniques, F89: Failure of Success Criteria 2.4.4, 2.4.9 and 4.1.2 due to not providing an accessible name for an image which is the only content in a link](https://www.w3.org/WAI/WCAG22/Techniques/failures/F89), retrieved on 2026-11-27
- [W3C Techniques, H30: Providing link text that describes the purpose of a link for anchor elements](https://www.w3.org/WAI/WCAG22/Techniques/html/H30), retrieved on 2026-11-27
- [W3C Techniques, ARIA8: Using aria-label for link purpose](https://www.w3.org/WAI/WCAG22/Techniques/aria/ARIA8), retrieved on 2026-11-27

---

As of: 2026-11-29 · https://barrierepruefung.de/en/knowledge/rules/link-name
