Skip to main content

Insight · Semantic HTML & Accessibility

Building a clean heading hierarchy without compromising design

Headings reflect the content structure, not desired font sizes. CSS separates visual design from the semantic level.

For web developers and UX teams, "heading hierarchy without design constraints" can be tested using three specific points: "Thematic nesting," "Independent design system," and "Level by font size."

Published: 3 min read · Author:

How can a clean heading hierarchy be created independently of the visual design?

Heading levels follow the topic tree of main title, sections, and subsections, and not the desired font size. Typography is controlled separately via the design system, ensuring that reusable modules are assigned the correct level at each placement.

Independent design system

  1. Formulate content as a topic tree with main title, sections, and subsections before assigning visual sizes.

  2. Give components a context-dependent heading level or a clear placement rule and completely separate styling from it.

  3. Output a heading list across multiple actual pages and professionally check for jumps, empty sections, and duplicate main headings.

Thematic nesting

  • Thematic nesting Each heading names the following section, and its level reflects its actual relationship to parent topics.

  • Independent design system Font size, weight, spacing, and visual role are controlled via classes or tokens instead of a false h-level.

  • Understandable outline view A simple list of headings conveys the content, order, and hierarchy of the page without additional explanation.

Practical Scenario: "Level by Font Size"

An FAQ component always uses an h2 heading, even though it is embedded within a section below an h2 heading. The template receives the expected entry level from the page context, while the same font style is maintained via a token; the questions appear there as an h3 heading and on a standalone FAQ page as an h2 heading.

Level by Font Size

  • Level by Font Size An h4 heading is chosen because it appears smaller, even though the section is directly below an h2 heading.

  • Empty Section Heading A visual teaser text is given a heading heading without opening its own subsequent content area.

  • Component Jump – Embedded modules introduce fixed levels and create a different, contradictory hierarchy at each installation location.

Understandable outline view

  • Percentage of reviewed pages whose heading list forms a coherent thematic hierarchy without visual representation.

  • Number of reusable components with a hard-coded level that creates a hierarchy jump at the actual installation location.

How "Heading Hierarchy Without Design Constraints" relates to other topics

Separates "Heading Hierarchy Without Design Constraints" Select buttons and links based on function rather than appearance. raises an important follow-up question: When is a button and when is a link the semantically correct control element?

For those who want to delve deeper into "Heading Hierarchy Without Design Constraints" from the perspective of the "UX, Navigation & Forms" cluster, see Use breadcrumbs for orientation, not just for SEO .

If you want to practically implement "Heading Hierarchy Without Design Constraints," you can refer to Robust Website Systems This focuses on "Native Semantics and Page Structure" and "Thematic Nesting."

Conclusion: Heading Hierarchy Without Design Constraints

Headings organize topics, while the design controls their visual emphasis. Keeping these two levels separate ensures the structure remains correct and design-wise flexible.

Sources and Further Information

These primary sources are authoritative for platform behavior, terminology, and check limits for "heading hierarchy without design constraints."

Key Thesis

Levels follow the nesting of topics and subtopics. Font size, weight, and spacing are designed separately to prevent the semantics from being misused for aesthetic purposes.

What This Is Not About

This does not refer to simply checking off a single checkpoint. The crucial factors are the separate risks of "level by font size," "empty section heading," and "component jump."

What it's about

Three requirements limit the solution: "topic nesting," "independent design system," and "understandable outline view." They must all work together effectively in production.

More insights

Semantic HTML & Accessibility

Use ARIA only where native HTML is insufficient

A separate step in the "Heading Hierarchy Without Design Constraints" process is to consider the question: When is ARIA necessary, and when is a native HTML element the better solution?

Semantic HTML & Accessibility

Use Tables for Data, Not Layout

Supplement "Heading Hierarchy Without Design Constraints" with a separate decision: Why should HTML tables be used only for tabular data and not for layout?

Insights Overview

All VELUNO Insights at a Glance

Further analyses on Website Systems, digital visibility, and robust working models.

Practical Implications

Independent Design System: Concrete Next Decision

A heading outline export of important page types should be reviewed jointly with the editorial and design teams. Fixed levels within components can then be replaced by context-sensitive rules and independent typography.