Neova高级 SEO 平台

图片 alt 文本重复了链接或按钮文本

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

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

使用屏幕阅读器的用户会把同样的词听两遍。无障碍最佳实践,不是 WCAG 的要求。

您可以做什么

为图片使用空的 alt 属性,或撰写能补充新信息的 alt 文本。

Neova 为何标记

  • 屏幕阅读器用户会把同样的话听两遍,一遍是图片,一遍是链接或按钮文字。
  • 如果图片旁边的文字已经说明了链接,图片就是多余的,alt="" 才是正确的选择。
  • 这是无障碍最佳实践,不是 WCAG 要求。

来源

完整指南

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

TL;DR

When a linked image carries alt text that just repeats the visible link text next to it, a screen reader announces the same label twice. Set the image’s alt to empty (alt="") and let the adjacent text label the link.

What This Check Flags — And Why It Matters

This fires when an image inside a link has alt text that duplicates the human-readable text in the same link (or the text right beside it). The classic shape is an icon plus a label pointing at one destination: a small cart graphic followed by “View Cart,” where the image alt also says “View Cart.” A sighted user sees one tidy link; programmatically the link now exposes two identical labels stacked on top of each other, and the screen reader voices the same words twice. Alt text exists to replace information lost when an image can’t be seen — and here nothing is lost, because the text is already there.

Why the Double Announcement Hurts

A screen reader builds a link’s accessible name by concatenating everything inside the anchor — image alt plus adjacent text. When the alt repeats the visible text, the reader voices the label twice: “View Cart View Cart, link.” It is not catastrophic, but it is friction on every single one of those links, and on a site with dozens of icon-plus-label patterns that friction adds up fast. The image is decorative in this context: the text already names the link’s purpose, so the picture reinforces meaning rather than adding it.

A Real Failing Example

Icon and label share a link, and the alt duplicates the label:

<a href="https://example.com/cart">
  <img src="/checks/img/cart.svg" alt="View Cart">
  View Cart
</a>

The accessible name becomes “View Cart View Cart.” Because the icon adds nothing the text doesn’t already say, empty the alt so the image drops out of the accessible name:

<a href="https://example.com/cart">
  <img src="/checks/img/cart.svg" alt="">
  View Cart
</a>

Now the reader announces “View Cart, link” once. An empty alt="" is deliberate, not a mistake — it tells assistive tech the image is decorative and safe to skip. Note the difference from a missing alt attribute, which screen readers may fall back to reading the filename for.

Empty Alt vs. Missing Alt vs. Descriptive Alt

Markup Screen Reader Behaviour Use When
alt="" Image skipped entirely Icon beside text that already labels the link
No alt attribute May read the filename aloud Never — always include alt
alt="View Cart" (with visible “View Cart”) Announces the label twice Never in this pattern — this is the failure
alt="View Cart" (icon-only link, no text) Announces “View Cart” once Icon is the only label in the link

The last row is the key nuance: if the icon is the only thing in the link, its alt has to carry the label. The rule only fires when visible text already does that job.

How to Detect It

  1. Screaming Frog — crawl and export the Images > Alt Text data, then scan for alt values that match nearby anchor text. A custom extraction pulling <a> inner text alongside child <img> alt makes the duplicates obvious at scale.
  2. axe DevTools — run the extension; it flags redundant alt text where the image’s alt repeats the link’s accessible name, pointing you straight at the node.
  3. Lighthouse — the Accessibility audit surfaces image-alt and link-name issues; review flagged links where the name looks doubled.
  4. View Source / DevTools — inspect a link that pairs an icon with a label and compare the <img> alt to the visible text. If they say the same thing, that’s the failure.

How to Fix It

  1. Find links that pair an image with visible text pointing at the same destination.
  2. Where the alt repeats the visible text, set that image’s alt to empty: alt="". Keep the attribute — just make it empty.
  3. For icon-only links with no visible text, do the opposite: give the image alt that names the action, or add an aria-label on the link.
  4. Re-run axe on the page to confirm the redundant-alt flag is gone and the link now reads its label once.

Common Mistakes

  • Deleting the alt attribute instead of emptying it. A missing alt is not the same as alt="" — some readers fall back to the filename. Always keep the attribute present and empty.
  • Emptying alt on an icon-only link. If there is no visible text, alt="" leaves the link with no accessible name at all. Only empty the alt when text already labels the link.
  • Stuffing the alt with keywords. Repeating the link text and padding it with extra terms makes the double-announcement longer and reads as spam. Keep decorative icons out of the accessible name.

FAQ

Is an Empty Alt Attribute Valid HTML?

Yes. alt="" is the standard, spec-blessed way to mark an image as decorative so assistive tech skips it. It is a deliberate signal, not an oversight.

Does This Affect Image SEO?

Emptying the alt on a decorative icon costs you nothing in image search — a UI icon beside a text label was never ranking on its own. Save descriptive alt for content images that genuinely need it. Background on the attribute: alt text.

What If the Icon Carries Extra Meaning?

Then it’s not decorative and you shouldn’t empty the alt — but that’s rare in the icon-plus-label pattern. If the icon adds information the text lacks, describe that specific meaning instead of repeating the label.

An icon-only link needs the alt (or an aria-label) because nothing else names it — the opposite fix. See links must have discernible text and the sibling check image button needs alt.

Does This Relate to role=img Images?

It’s adjacent. Elements with role="img" have their own naming requirements — see role=img elements need alternative text — but the redundancy principle is the same: don’t announce the same thing twice.

Need a full technical audit?

Neova runs deep crawls that catch issues like this across your whole site.

在您自己的网站上找到它

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

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

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

全部图片检查 · 指南 · 检查项库

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