NeovaZaawansowana platforma SEO

Nagłówek nie ma dostępnego tekstu

W Neova Działa na samym crawlu: nic nie trzeba ustawiać.

Ostatni przegląd reguły: 17 października 2026 · Aktualizacja poradnika: 28 września 2026

Dobra praktyka dostępności, nie wymóg WCAG. Czytniki ekranu odczytują pusty nagłówek, w którym nie ma nic do przeczytania, co wprowadza w błąd osoby poruszające się po nagłówkach.

Co możesz zrobić

Dodaj tekst do nagłówka albo usuń element nagłówka.

Dlaczego Neova to oznacza

  • Czytniki ekranu ogłaszają pusty nagłówek jako 'nagłówek poziomu 2' bez niczego dalej, co myli osoby przeskakujące po nagłówkach.
  • Żadne kryterium WCAG tego nie wymaga; to dobra praktyka i reguła W3C ACT.
  • Puste nagłówki często biorą się z nagłówków z samą ikoną albo z szablonu bez wpisanego tekstu.

Źródła

Pełny poradnik

Ta część jest na razie po angielsku.

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.

Znajdź to na swojej stronie

Neova uruchamia ten test i wszystkie pozostałe przy każdym crawlu, a potem zapisuje poprawkę jako ticket dla Twojego zespołu.

  • Aplikacja na Maca, Windows i Linuksa
  • Wszystkie 696 testy, każdy ze źródłem
  • Search Console i Analytics 4 połączone tylko do odczytu
  • Tickety do Jiry, Lineara i Asany

Pobierz Neova Plan Desktop Free albo Solo za darmo przez 14 dni, bez karty.

Wszystkie testy z kategorii Dostępność · Poradniki · Biblioteka testów

Autor: Neova Labs · Wróć do Biblioteki testów