Skip to content
WCAG Clear

How to Fix Empty Links and Buttons

By WCAGCLEAR Nerds. Published .

Short answer: every link and button needs an accessible name a screen reader can announce. That is WCAG 2.4.4 Link Purpose (In Context), 4.1.2 Name, Role, Value, and 1.1.1 when an image is the only content in the control. WebAIM's 2026 Million report found empty links on 46.3% of home pages and empty buttons on 30.6%.

Three. 2.4.4 (A) requires that a link's purpose can be determined from its text, or from that text plus programmatically determined context. 4.1.2 (A) requires every user interface component to have a programmatic name. 1.1.1 (A) requires a text alternative when an image is the only content in a link or button.

An empty control fails those rules because there is no name to announce. W3C documents a failure, F89, when an image is the only content in a link and has no accessible name. Nearby sentence context cannot rescue a link that has no text, no alt, and no aria-label. This is a how-to, not a substitute for what WCAG 2.1 AA means. It is not legal advice.

What does a screen reader user actually hear?

They hear the name, then the role. W3C's ARIA Authoring Practices example is a button named Mute Conversation, spoken as Mute Conversation button. If there is no accessible name, the user still learns that a link or button is there, but not what it does. They cannot choose it from a list of links.

W3C's Understanding document for 2.4.4 notes that assistive technology can give users a list of the links on a page. Meaningful names let someone skip the ones they do not need. An unnamed control is also a problem for speech input: there is no phrase to say. The same idea as missing form labels, applied to links and buttons.

The usual pattern is a control that looks obvious on screen and has nothing in the accessibility tree. Icon-only buttons, image links with no alt, social icons, empty anchors, and hamburger menus are the frequent cases. WebAIM's 2026 Million report found empty links on 46.3% of home pages and empty buttons on 30.6%.

Those empty-link and empty-button rates are up from 45.4% and 29.6% in WebAIM's 2025 figures. Both sit in the same six error types that made up 96% of detected errors in 2026.

  • An icon-only button whose SVG or font icon has no text alternative.
  • A linked logo or photo with no alt attribute.
  • Social icons that wrap an image or empty span and point at Facebook, Instagram or similar.
  • An empty <a> used as a hook for CSS or JavaScript, with no text inside.
  • A hamburger or close control that is a button with only a graphic inside.

Fix the pattern in the component, not one page at a time. One unnamed icon in a header can fail every page that uses it.

Prefer visible text. Next, put the purpose in alt when an image is the only content. If the design cannot show text, add visually hidden text inside the control. Use aria-label last, and only when there is no useful visible text. If visible words exist, they must appear in the accessible name (2.5.3 Label in Name).

W3C's ARIA Authoring Practices prefer visible text: it stays in sync when the design changes, and people who do not use a screen reader can still read it. A named link or button can be as small as this:

<a href="/">Home</a>
<button type="button">Search</button>

When an image is the only content, the name comes from alt. Understanding 2.4.4 gives the complementary case: if the link already contains text, the image next to it should use empty alt so the name is not repeated.

<a href="/"><img src="logo.png" alt="Home"></a>
<a href="/"><img src="logo.png" alt=""> Home</a>

Visually hidden text belongs inside the control, using CSS that clips it from the screen but leaves it in the accessibility tree. Do not use display: none or visibility: hidden. That is the same hiding pitfall as on form labels.

aria-label is useful when there is no visible text that can serve as the name. W3C's Authoring Practices example is a close control whose visible content is X:

<button type="button" aria-label="Close">X</button>

Treat aria-label as a last resort. On a link or button, it hides the element's own text from assistive technology. If the visible label says Search and aria-label says Submit query, speech-input users who say Search will miss. That fails 2.5.3. If you already have visible words, keep them, and do not override them.

Scan first, then inspect the accessibility tree, then listen. WCAG Clear's checker uses axe-core and flags links and buttons that have no accessible name. A clean scan is a start. It cannot tell you whether the name is the right name.

  • Run a free scan on your header, footer and any page with icon buttons.
  • In your browser's developer tools, open the accessibility tree and confirm each link and button has a name.
  • Tab through the page. Every control should show a visible focus outline and, with a screen reader on, announce a name plus its role, such as Home link or Search button.
  • Check image links against WCAG 1.1.1: if the image is the link, alt must say what the link does.

Have a person try the main task with a screen reader if the page is checkout, booking or contact. A named button that does the wrong thing is still a problem, and a scanner will not catch that.

Frequently asked questions

Does aria-label fix every empty icon button?
It can supply a name when there is no visible text, which is how W3C's Authoring Practices document the Close example. Prefer visible text or visually hidden text first. If any words are visible, those words must be in the accessible name (2.5.3).
Can a linked image use empty alt?
Only when the link already contains text that names the destination. Understanding 2.4.4 uses empty alt on an icon next to link text so the name is not repeated. If the image is the only content, empty alt leaves the link with no name. That fails 1.1.1 and 4.1.2.
Is a title attribute enough?
No. W3C's Authoring Practices treat title as a last-resort fallback that typically yields a low-quality name. Put the purpose in visible text, alt, hidden text, or aria-label instead.
Do I need aria-label if the button already says Search?
Usually no. The visible text is already the name. Adding aria-label replaces that name. If the two strings differ, you fail 2.5.3 Label in Name, which matters for speech input.

Check your own page

Run a free scan to see which of these issues appear on your site.

Check a site

Sources

  1. The WebAIM Million: 2026 report, WebAIM
  2. Understanding Success Criterion 2.4.4: Link Purpose (In Context), W3C WAI
  3. Understanding Success Criterion 4.1.2: Name, Role, Value, W3C WAI
  4. Understanding Success Criterion 1.1.1: Non-text Content, W3C WAI
  5. Understanding Success Criterion 2.5.3: Label in Name, W3C WAI
  6. Providing Accessible Names and Descriptions, W3C WAI-ARIA Authoring Practices
  7. Web Content Accessibility Guidelines (WCAG) 2.1, W3C

This guide is educational and is not legal advice. Talk to an attorney about your legal obligations.