Neova高级 SEO 平台

链接没有可访问名称

在 Neova 中 直接在抓取过程中运行,无需任何设置。

规则最近审核:2026年10月17日 · 指南更新:2026年7月7日

WCAG 2.4.4 和 4.1.2 要求每个链接都有名称。没有文字、图片 alt 或 aria-label 的链接只会被读作“链接”,屏幕阅读器用户无法知道它指向哪里。所有链接都计入,包括社交和分享图标。

您可以做什么

添加可见文字、链接内图片的 alt 文字,或说明链接去向的 aria-label。

Neova 为何标记

  • 屏幕阅读器只会把没有名称的链接读作「链接」,用户无法知道它指向哪里。
  • WCAG 2.4.4 和 4.1.2(A 级)要求每个链接都有说明其用途的名称。
  • Google 借助锚文本理解目标页面,空链接什么也不提供。
  • 读取无障碍树的 AI 智能体同样无法判断没有名称的链接是做什么的。

来源

完整指南

这一部分目前只有英文版。

Your audit flagged one or more links that a screen reader announces as nothing more than "link", no words, no destination, no clue. This is the axe-core link-name rule, and it maps to WCAG 2.4.4 (Link Purpose in Context) and 4.1.2 (Name, Role, Value). A link with no discernible text is invisible to assistive tech and a dead end for the crawlers that follow your links to understand your site.

A link's accessible name is the text a screen reader reads aloud when a user lands on it. Sighted users get that name from visible words. A blind user, or Google's crawler, gets it from the accessible name computation: the text inside the anchor, or an aria-label, or the alt of an image inside the link. When all of those are empty, the link has no name. That's the failure.

The three usual suspects: an anchor wrapping only an icon font (<i class="fa-twitter">) with no label, an anchor wrapping an image that has an empty alt, or a completely empty anchor left behind by a page builder.

A Real Failing Example and the Fix

<!-- FAILS: icon-only link, screen reader says just "link" -->
<a href="https://example.com/contact"><i class="icon-envelope"></i></a>

<!-- FAILS: image link with empty alt -->
<a href="https://example.com/"><img src="logo.svg" alt=""></a>

<!-- FAILS: empty anchor from a builder -->
<a href="https://example.com/pricing"></a>
<!-- FIXED: give the icon link an accessible name -->
<a href="https://example.com/contact" aria-label="Contact us">
  <i class="icon-envelope" aria-hidden="true"></i>
</a>

<!-- FIXED: describe where the logo link goes -->
<a href="https://example.com/"><img src="logo.svg" alt="Acme Tools home"></a>

<!-- FIXED: real, visible link text -->
<a href="https://example.com/pricing">See pricing</a>

Note the aria-hidden="true" on the icon. Once the anchor has an aria-label, you hide the decorative glyph so the name doesn't get muddied.

Failure Pattern to Accessible Fix

What the Audit Found Why It Has No Name The Fix
Icon-only link (<a><i></i></a>) Icon fonts carry no text node Add aria-label on the anchor, aria-hidden on the icon
Image link, alt="" Empty alt gives the image no name to pass up Write a destination-based alt (not "logo")
Empty anchor No child content at all Add visible text, or remove the dead link
SVG-only link Inline SVG has no <title> Add <title> inside the SVG or aria-label on the anchor
Text hidden with display:none Hidden text is excluded from the name Use aria-label or visually-hidden CSS instead

Why It Matters for Accessibility and SEO

For a keyboard or screen-reader user, an unnamed link is a locked door. They hear "link, link, link" down your navigation with no way to tell where any of them go. That alone fails the audit, and it makes your site genuinely unusable for a chunk of your audience.

On the search side, anchor text is a ranking signal, it's how Google infers what the target page is about. An empty or icon-only link passes zero descriptive context to the destination. A link that says "See pricing" tells both the user and the crawler exactly what waits on the other side; an empty <a> tells nobody anything.

How to Detect It on Your Own Site

  1. axe DevTools, install the browser extension, open DevTools, run a scan, and filter for the link-name rule. It points to the exact anchor.
  2. Lighthouse, run the Accessibility category in Chrome DevTools; "Links do not have a discernible name" appears under failing audits with the offending nodes.
  3. WAVE, the wave.webaim.org extension flags "Empty Link" with a red icon right on the page.
  4. Manual tab test, tab through the page. When focus lands on a link, check the status bar or listen with a screen reader (VoiceOver: Cmd+F5). If it announces "link" and nothing else, it's unnamed.
  5. Devtools inspection, right-click the link, Inspect, and read the Accessibility panel's "Name" field. Empty means flagged.

How to Fix It

  1. Open the flagged link in your template or page builder.
  2. Decide the true destination and write a short, human name for it ("Contact us", "Download the guide", "Acme home").
  3. If there's visible text that fits, put it inside the anchor. If the design is icon-only by choice, add aria-label to the anchor and aria-hidden="true" to the icon.
  4. For image links, replace the empty alt with text describing the destination, not the picture.
  5. For inline SVG, add a <title> element as the first child, or an aria-label on the anchor.
  6. Re-run axe or Lighthouse to confirm the count drops to zero.

FAQ

No. The title attribute only appears on mouse hover and is inconsistently exposed to screen readers, so axe won't accept it as a reliable name. Use aria-label or real link text.

Does Adding aria-label Hurt My SEO?

It doesn't hurt, but visible anchor text is stronger. Google reads on-page text more confidently than ARIA attributes, so prefer real words in the link when the design allows, and reserve aria-label for genuinely icon-only controls.

Because the logo image has alt="". A logo that links home is functional, not decorative, so it needs a name. Set alt="Brand name home" on the image.

Is This an Error or a Warning?

axe-core rates link-name as a serious violation, not a soft warning. It's a genuine barrier, so treat every flagged instance as something to fix rather than dismiss.

Not by this rule. "Click here" has discernible text, so it passes link-name, but it's still weak. See our note on non-descriptive anchor text for why generic labels underperform.

This is the link-specific sibling of two other "discernible text" checks: buttons must have discernible text (for <button> controls) and form input elements must have labels. Also worth a look: same link text should go to the same place, and the broader picture in accessibility and SEO.

在您自己的网站上找到它

Neova 在每次抓取时都会运行此检查项和其他所有检查项,然后把修复方法写成工单交给您的团队。

  • 适用于 Mac、Windows 和 Linux 的桌面应用
  • 全部 696 项检查,每项都附来源
  • Search Console 和 Analytics 4,以只读方式连接
  • 工单发送到 Jira、Linear 和 Asana

下载 Neova Desktop Free 套餐,或免费试用 Solo 14 天,无需银行卡。

全部无障碍检查 · 指南 · 检查项库

作者:Neova Labs · 返回检查项库