In short
A purely decorative heading is an <h1> to <h6> tag that introduces no section: a slogan, a key figure, a small hook above a heading, a call to action, a price, an empty line used for spacing. It was chosen for its size or weight, not for its role. Once this check is done, only real section headings are marked up as headings; everything else keeps exactly the same look thanks to CSS, with a suitable element.
Why it matters
Headings form the page outline. Screen readers show it as a list and let users jump from heading to heading; search engines read the topics covered in it; generative engines use it to split the page into passages. An outline that contains “Discover”, “1,200+ customers”, “Contact us!” and “€29.90” no longer describes anything.
MDN is explicit: do not use heading elements to make text bigger; use the CSS font-size property. WCAG criterion 2.4.6 requires headings to describe the topic or purpose of their section. In its advice on appearing in AI search answers, Microsoft advises against vague labels and decorative symbols (arrows, stars, repeated punctuation) that distract from the actual content.
The problem almost always comes from the template or the page builder: a “heading” block is the fastest way to get large text, and its settings offer the size without showing the tag.
What it improves
- Accessibility A screen reader's list of headings becomes a usable table of contents again.
- Page outline The H1 and H2s stand out, with no competition from fake headings.
- Understanding of the topic Search engines no longer read slogans in place of section headings. An indirect and modest effect.
- Splitting into passages Better-delimited sections for AI answers. No guarantee of being cited.
- Maintenance Size is set through reusable CSS classes, no longer by choosing a tag.
How to check
Show all the page's headings with this script, pasted into the developer tools console (F12). It flags headings that are empty, very short or contain no letters:
document.querySelectorAll('h1, h2, h3, h4, h5, h6').forEach((h) => {
const text = h.textContent.trim().replace(/\s+/g, ' ');
const words = text.split(' ').filter(Boolean).length;
const flag = text === '' ? 'EMPTY' : !/\p{L}/u.test(text) ? 'NO LETTERS' : words <= 2 ? 'SHORT, review' : '';
console.log(h.tagName, `“${text}”`, flag);
});
For each heading listed, ask one question: does it introduce a block of content whose topic it announces? If not, it is a decorative heading. A short heading is not necessarily wrong (“Pricing”, “Contact”); a long one can be (a whole slogan).
Other ways:
- WAVE: flags empty headings and offers a Structure view of the page.
- axe DevTools: the
empty-headingrule spots headings without text. - Screaming Frog: the H1 and H2 tabs list the text of each heading across the whole site; sort by length and look for repetitions (“Discover”, “Why choose us”) on hundreds of pages, a sign of a faulty template.
How to implement
Before you start
Replacement grid:
| What is marked up as a heading | Actual role | Element to use |
|---|---|---|
| Small hook above the heading (“Our services”) | Label, eyebrow | <p> in an <hgroup> with the heading |
| Slogan in the homepage banner | Hook text | Styled <p>; the H1 describes the business |
| Key figure (“1,200+ customers”) | Highlighted data | <p> with <strong> |
| “Contact us!”, “Order” | Action | <a> or <button> |
| Price, reference, rating | Product data | <p> or <span> |
| Empty heading used for spacing | Layout | CSS margin, no element |
| Quote or testimonial in large type | Quotation | <blockquote> |
To keep the look, create style classes that are independent of the tag:
.title-xl { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; }
.title-lg { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
The eyebrow is marked up like this:
<hgroup>
<p class="eyebrow">Our services</p>
<h2>Boiler servicing and repair in Nantes</h2>
</hgroup>
Bootstrap already provides the .h1 to .h6 classes, and many themes (including Dawn on Shopify) have equivalents: a <p class="h2"> looks like an H2 without being one.
Warning: do not replace a real section heading with a paragraph to “reduce the number of headings”. The aim is to remove fake headings, not to flatten the outline. See structure H2/H3 headings (opens in a new tab).
WordPress
Versions WordPress 6.4 and later, Elementor 3 and 4 (Heading widget).
Block editor: select the faulty Heading block, click the block icon, “Transform to” Paragraph, then set the size and weight in the Typography panel of the block settings. For a reused hook, create a block style or a pattern.
Elementor: in the Heading widget, Content tab, change the HTML Tag option from H2 to p, div or span; the style defined in the Style tab stays the same.
Theme: fake headings repeated on every page come from the template (widget titles, reassurance banner, footer). In a block theme, fix them in Appearance > Editor > Patterns or Template Parts; in a classic theme, in the child theme's files.
Shopify
Versions Online Store 2.0 themes (Horizon, Dawn), all Shopify plans, November 2026.
In themes derived from Dawn, the Heading block of the Image banner and Rich text sections always produces an <h2>, whatever its size. For a hook or a slogan:
- in the Rich text section, use the Caption block, which produces a paragraph;
- in the Image banner section, use the Text block with the Subtitle or Uppercase style, also rendered as a paragraph.
If the design requires the large type of the Heading block, edit the code in a copy of the theme (Online Store > Themes, “…” menu, “Edit code”): in sections/image-banner.liquid, replace the h2 element of the heading block with a p, keeping its classes. Only do this for a slot where the heading never introduces a section.
In Horizon, the Text block preset (Heading 1 to Heading 6, Paragraph) only changes the style classes, not the tag: check in the published source code which tag is actually produced for each hook.
Wix
Versions Wix Editor and Wix Studio, November 2026.
Select the text and apply a Paragraph style, then enlarge it in the text settings. If the design must remain that of a heading, use the text's HTML tag setting to give it a paragraph tag while keeping its style; the exact label differs between the Wix Editor and Wix Studio.
Squarespace
Versions Squarespace 7.1, all plans, November 2026.
Put hooks and key figures in Paragraph style in the text block and adjust their size in the site styles, rather than using a heading format to make the text bigger.
Webflow
Versions Webflow Designer, all plans, November 2026.
Replace the Heading element with a Paragraph or Text Block element and apply the same class to it. In Webflow, the class carries the style: changing the element while keeping the class preserves the look.
Laravel
Versions Laravel 11 to 13.
In Blade components, separate the style from the tag:
{{-- resources/views/components/eyebrow.blade.php --}}
<p {{ $attributes->merge(['class' => 'eyebrow']) }}>{{ $slot }}</p>
<hgroup>
<x-eyebrow>Our services</x-eyebrow>
<h2>{{ $section->title }}</h2>
</hgroup>
Next.js
Versions Next.js 15 and 16.
Same principle in React components: the hook component renders a paragraph, the heading component receives its tag as a prop.
export function Eyebrow({ children }: { children: React.ReactNode }) {
return <p className="eyebrow">{children}</p>
}
export function StatHighlight({ value, label }: { value: string; label: string }) {
return (
<p className="title-xl">
<strong>{value}</strong> <span className="text-base">{label}</span>
</p>
)
}
With Tailwind, write <p className="text-sm font-semibold uppercase tracking-wide"> rather than an <h6> to get a small label.
Nuxt
Versions Nuxt 3 and 4.
In Vue components, apply the same separation: a hook component that renders a <p>, and a heading component whose tag is passed as a prop (<component :is="tag">).
Common mistakes
- The brand slogan as H1 on the homepage, with the page's real topic relegated to H2.
- Key figures in H2 (“15 years of experience”, “4.8/5”): they show up in the outline as sections.
- An eyebrow marked up as a heading above the real heading: two consecutive headings, the first of which announces nothing.
- Buttons and action links styled with an
<h3>instead of an<a>or a<button>. - Empty headings left by a page builder to create space.
- Arrows, stars and emoji in headings to catch the eye.
- Fixing page by page a fake heading that comes from the template: fix the template once.
Frequently asked questions
How do you know whether a heading is purely decorative?
A heading is decorative if it introduces no block of content whose topic it announces. Read the page's list of headings out of context, as a screen reader does: “Boiler servicing prices” announces a section, while “Discover”, “1,200+ customers” or “Contact us!” announce nothing. These texts can keep their look, but with a paragraph, link or button tag.
Do decorative headings hurt SEO?
There is no penalty for a decorative heading. The problem is dilution: the page outline, read by search engines and screen readers, fills up with slogans and figures that hide the real sections. Google says it relies little on HTML semantics, which are often imperfect on the web, so the direct effect on ranking is small. The main gain concerns accessibility and the clarity of the structure.
How do you keep the same design while changing the tag?
A heading's style comes from CSS, not from the tag. Create classes such as title-lg or eyebrow, or use the theme's own (Bootstrap and Dawn offer h1 to h6 classes), then apply them to a paragraph. In Elementor, the HTML Tag option of the Heading widget changes the tag without touching the style. In Webflow, keep the same class while changing the element.
Resources
- MDN: heading elements h1 to h6developer.mozilla.org
- MDN: the hgroup elementdeveloper.mozilla.org
- W3C: Understanding Success Criterion 2.4.6 Headings and Labelsw3.org
- Microsoft Advertising: Optimizing your content for inclusion in AI search answersabout.ads.microsoft.com
- Elementor: Heading widgetelementor.com
- Google Search Central: SEO Starter Guidedevelopers.google.com
Updated on
Topic checklist (PDF)