Neova高级 SEO 平台

标题没有可访问文本

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

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

无障碍最佳实践,不是 WCAG 的要求。屏幕阅读器会朗读一个没有任何内容的空标题,这会误导按标题导航的用户。

您可以做什么

为标题添加文本,或删除该标题元素。

Neova 为何标记

  • 屏幕阅读器会把空标题读作「标题 2 级」,后面什么都没有,会误导按标题跳转的人。
  • 没有 WCAG 标准要求这一点;这是最佳实践,也是一条 W3C ACT 规则。
  • 空标题通常来自只有图标的标题,或没有填入文字的模板。

来源

完整指南

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

What "Empty Headings" Actually Flags

This check fires when a heading tag — an <h1> through <h6> — ships to the browser with no readable text inside it. The markup exists in the DOM, but a screen reader or a crawler that walks the heading outline lands on a node that announces nothing. The stakes are quiet but real: empty headings break the document outline that assistive tech and search engines rely on to understand page structure, and they can trip accessibility audits that block a Lighthouse pass.

A Real Example, and the Fix

The classic offender is a heading kept in the markup purely as a styling or spacing hook, with the visible text living in a sibling element:

<!-- Flagged: the h2 is a decorative container, text sits elsewhere -->
<h2 class="section-divider"></h2>
<div class="section-title">Our Pricing</div>

<!-- Also flagged: icon-only heading, no text node -->
<h3><i class="icon-star" aria-hidden="true"></i></h3>

The fix is to put the real words back inside the heading and move the styling to a class. If the graphic truly is decorative, demote it to a <div> so it stops pretending to be a heading:

<!-- Fixed: heading carries its own text -->
<h2 class="section-title">Our Pricing</h2>

<!-- Icon heading fixed: real text plus a hidden-but-readable label -->
<h3>
  <i class="icon-star" aria-hidden="true"></i>
  <span>Customer Favorites</span>
</h3>

One trap worth calling out: a heading that looks filled but only contains whitespace, a non-breaking space, or an image with no alt still counts as empty. <h2>&nbsp;</h2> is empty as far as the outline is concerned.

What Counts as Empty vs. What Passes

Markup Result Why
<h2></h2> Empty No child nodes at all
<h2> </h2> Empty Whitespace only, no text
<h2>&nbsp;</h2> Empty Non-breaking space is treated as blank
<h2><img src="logo.png"></h2> Empty Image has no alt text
<h2><img src="logo.png" alt="Acme"></h2> Passes Alt text gives the heading an accessible name
<h2><span>Pricing</span></h2> Passes Text lives in a nested element, still readable

How to Detect It on Your Own Site

  1. Lighthouse: Open Chrome DevTools → Lighthouse → run an Accessibility audit. The "Heading elements are not in a sequentially-descending order" and "empty heading" items surface here with the exact node highlighted.
  2. PageSpeed Insights: Run your URL through PageSpeed Insights and open the Accessibility section — empty headings are called out with a DOM snippet.
  3. View Source / DevTools console: Paste this into the console to list every empty heading instantly:
    [...document.querySelectorAll('h1,h2,h3,h4,h5,h6')]
      .filter(h => !h.textContent.trim())
      .forEach(h => console.log(h.outerHTML));
  4. Accessibility tree: In DevTools, open the Accessibility pane for a suspect heading — an empty one shows a blank "Name," which is the giveaway.

Why the Outline Matters More Than It Looks

Sighted users never see this problem — the page looks fine because the visible text lives somewhere. But a screen-reader user navigating by heading (a primary way blind users skim a page) hits your hollow node and hears "heading level 2" followed by silence, then has to guess whether they missed something or the site is broken. Multiply that across a template used on every page and you have a site-wide navigation defect that never shows up in a visual QA pass. Crawlers treat the heading outline as a table of contents for your content; a blank entry is a chapter title with no chapter, and it dilutes the topical signal the surrounding real headings are trying to send.

There is also a maintenance angle. Empty headings are almost always accidental — a leftover from a deleted section, a builder widget dragged in and never filled, a divider someone reached for the wrong tag to build. Each one is a small piece of rot in the template, and they accumulate. Clearing them keeps the markup honest, which pays off every time someone new has to reason about the page structure.

How to Fix It

  1. Put the text back. If a heading is a spacing or divider hack, add the real heading text and style it with CSS instead of leaving it hollow.
  2. Demote decorative headings. A pure visual break that was never a real section title should be a <div> or <hr>, not a heading.
  3. Label icon-only headings. Add a visible <span> or a visually-hidden text label so the heading has an accessible name.
  4. Give images alt text. If a logo or graphic sits inside a heading, the alt attribute becomes the heading's text — fill it in.
  5. Hunt the builder. Page builders love to inject empty heading widgets. Delete the orphaned block rather than hiding it with CSS.

Common Mistakes

Do not "fix" an empty heading by slapping display:none on it — the node still exists in the DOM and still fails the check. Do not stuff it with a single &nbsp; to silence a linter either; that is the exact pattern that got flagged. And resist the urge to keep an empty <h1> around "for SEO" — an empty top-level heading is worse than none, because it signals a title that was never written.

FAQ

Is an Empty Heading a Ranking Penalty?

No direct penalty, but it degrades the semantic structure Google uses to understand your page and can drag down accessibility scoring, which increasingly overlaps with quality signals. Fixing it is cheap insurance, not a gamble.

What Is the Difference Between an Empty Heading and a Heading Level Skip?

An empty heading has no text; a heading level skip has text but jumps levels (for example h2 straight to h4). One is a hollow node, the other is a broken hierarchy — they are separate checks with separate fixes.

Does a Heading With Only an Icon Count as Empty?

Yes, if the icon has no accompanying text and no accessible label. Add a <span> with real words, or an aria-label, so the heading announces something.

My CMS Auto-Generated the Empty Heading. Now What?

Track down the block or widget in your builder and delete it. If a theme template hardcodes it, edit the template — hiding it with CSS leaves the failing node in place.

Where Do Empty Headings Fit in the Bigger Picture?

They are one piece of a healthy document outline. See our guide on how to structure headings for SEO and the heading structure reference for the full picture.

在您自己的网站上找到它

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

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

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

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

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