Separate Style from Structure by Fixing Your Document Heading Hierarchy

How do you fix headings used only for visual styling?
Here’s how to fix heading levels used only for visual styling: keep headings that label real sections, and replace headings used only to make text look larger or bolder with a paragraph or span styled in CSS. Choose each remaining heading level based on where its section belongs in the page outline, not how large you want it to appear.
This matters because screen reader users can jump between headings. A price tag or button marked as a heading adds a misleading stop. Clear headings help readers find the content they need and make the page’s structure easier for search engines to understand.
I’m Clayton Johnson, founder of SmallBizSEO, where I work on technical SEO and clear content structure for small businesses. My approach to how to fix heading levels used only for visual styling is to preserve the design while making the page outline useful to readers.

How to fix heading levels used only for visual styling
To fix heading misuse, first decide whether the text labels a real section. If it does, use the heading level that fits the section’s place in the outline. If it does not, use a non-heading element and CSS to create the desired appearance.
How can you tell whether a heading is structural or only visual?
A structural heading names the content that follows it. A visual-only heading is being used to change appearance, such as making text larger, bolder, or more prominent, without introducing a section.
Try reading the page’s headings in order without the body text. They should form a useful summary of the page. Then ask whether each heading describes the content that follows. A heading that does neither may be serving only a visual purpose.
Common examples include:
- A price marked up as
<h3>to make it stand out in a product listing. - A button marked as
<h2>even though it performs an action rather than introducing a section. - A large label styled as a heading even though the content below does not belong to a section with that name.
- An empty heading added to create space. Screen readers may announce it as a heading with no text.
These elements create false or confusing stops for people who navigate by headings. Use this guide to digital accessibility alongside W3C guidance on heading structure when reviewing the page outline.
| Element | Semantic purpose | If it is only for appearance |
|---|---|---|
<h2> |
Names a major section | Use a paragraph or span with CSS |
<h3> |
Names a subsection under an <h2> |
Choose a real heading level, or use CSS-styled text |
| Price or button | Presents a value or action | Use suitable text or button markup, not a heading |
How to fix heading levels used only for visual styling in HTML
Replace a non-structural heading with a <p> or <span>, then apply a CSS class for its size, weight, spacing, and color. Choose a paragraph when the text forms a standalone block; use a span for a short phrase within other text.
For example, change a price that does not introduce a section from <h3>$49</h3> to <p class="product-price">$49</p>. Style it with CSS such as .product-price { font-size: 1.5rem; font-weight: 700; color: #333; }. The text keeps its visual emphasis without appearing in the page’s heading outline.
If you remove an empty heading that was being used for spacing, use CSS margin or padding instead. For a real heading, keep the heading element and use CSS to control how it looks. The heading level conveys structure; its font size does not have to match the level.

The MDN reference for HTML heading elements explains the role of <h1> through <h6> and advises using CSS, not heading elements, to resize text. We also review heading markup as part of technical SEO, where meaningful page structure supports clearer content organization.
How to fix heading levels used only for visual styling across templates and documents
Build the page outline around the content. In most cases, use one descriptive <h1> for the main topic, <h2> elements for major sections, and <h3> elements for subsections within those sections. Use a heading level to show a real parent-child relationship, not to choose a convenient font size.
Avoid jumping levels when starting a subsection. For example, place an <h3> under an <h2>, rather than using an <h4> just because it looks right. When a subsection ends and a new section begins, returning to a higher-level heading, such as moving from <h4> back to <h2>, can be logical.

Fixed areas such as navigation, footers, and sidebars may appear on many pages. Keep their heading ranks consistent across templates rather than changing them to match each page’s main content. You can label a navigation region with a visible heading and connect the two using aria-labelledby, such as <nav aria-labelledby="primary-nav-heading">. A heading is not required just to create a label; use an appropriate accessible name for the region.
For Word documents, apply built-in heading styles according to the document outline, then modify the styles’ appearance if needed. If text should no longer be a heading but needs to keep its current look, set its paragraph outline level to “Body Text” and retain or recreate the visual formatting with a non-heading style. For numbered headings, configure multilevel numbering to use the appropriate paragraph styles instead of using Format Painter between heading levels.
A site audit can help identify heading patterns repeated across page templates, not just one-off issues.
How do you test and maintain a useful heading structure?
Review the heading list, check each heading against the content that follows, and test navigation with assistive technology. Then repeat the review when templates or shared components change.
Which tools can review heading order and expose visual-only headings?
Use tools to find patterns, but make the final decision by checking what each heading means in context:
- In Chrome DevTools, inspect an element and use the Accessibility pane to review its role and accessible name.
- Use the HeadingsMap browser extension to view heading text and levels as an outline.
- Use WAVE’s Structure panel to review headings and page regions, and check for issues such as empty or skipped headings.
- Review the outline manually. Confirm each heading introduces or names the section that follows it.
Automated tools can reveal that a heading exists or that levels are out of order, but they cannot reliably decide whether a heading is meaningful for its content. For example, a price may be a correctly formed heading in code but still be inappropriate as a section label. Include this human review in your site audit.

How do headings affect screen reader navigation and SEO?
Meaningful headings give screen reader users a way to move through a page by section instead of reading every paragraph in sequence. Users of NVDA and VoiceOver can navigate heading by heading and use the list of headings to understand the page’s organization. Clear labels can also help readers with cognitive disabilities scan information and understand how sections relate.
This supports the information and relationships described in WCAG 1.3.1: structure conveyed visually should also be available programmatically. A misleading heading outline can make navigation less useful, even if the page looks polished.
Search engines can use headings as signals that help them interpret how content is organized. That does not mean changing heading levels guarantees better rankings. Write descriptive headings that accurately label useful content, and treat semantic markup as one part of sound SEO. Our overview of common SEO audit errors also explains why technical issues should be checked in context rather than treated as automatic ranking outcomes.
What should you do after fixing the hierarchy?
Retest the page on desktop and mobile. Confirm that replacing a heading with a paragraph or span has not changed the intended appearance, and check that real headings still appear in a logical order. Review shared templates and repeated components so the same misuse does not remain elsewhere.
Give editors simple guidance: select a heading level based on the section’s place in the outline, and adjust appearance through styles. Add heading reviews to ongoing accessibility and technical SEO checks.
For a quick reference, use SmallBizSEO’s heading-level guide.