Your CMS Editor Is Quietly Breaking Your Heading Outline

, 4 minute read. Filed under accessibility, cms and web development.

Years ago, back when I was newer to accessibility, I wrote my first long page inside a rich-text editor. I picked every heading level by looking at the dropdown preview and choosing whichever one looked about right.

Heading 2 was too big, so I tried Heading 4, and it looked great.

That was the only test I ran, and nothing on screen complained. It’s why this mistake can live for years, because the people who would notice aren’t reading the screen the way I was.

I know better now, but I still see editors that invite the same mistake. This post is about what that dropdown does to anyone who navigates by outline, and what you can do about it whether you build editors or only write inside them.

The page you see and the page they hear

Sighted readers scan a page by shape. Big text and white space guide them, so the visual size of a heading does real work.

Screen reader users scan too, but they do it with a list.

In the WebAIM Screen Reader User Survey #10 (run December 2023 to January 2024, 1,539 responses), 71.6% of respondents navigate by headings first when hunting for information on a long page. That’s well ahead of the browser’s find feature at 13.6% and reading straight through at 6.4%.

Among advanced users the number climbs to 78%, against 47% for beginners.

So the heading list is the closest thing a screen reader user has to a glance. Whatever I picked in that dropdown became their table of contents.

Picture a book where the typesetter built the table of contents by sorting lines on font size instead of chapter order.

“Chapter 3” would show up under a subsection of Chapter 1 because someone liked the smaller text (and you would still be reading it, just very confused about where you were).

flowchart TD
    A["H1: Pricing guide"] --> B["H2: Plans"]
    B --> C["H4: Free plan<br/>(picked for size)"]
    B --> D["H4: Pro plan<br/>(picked for size)"]
    A --> E["H2: Support"]
    E --> F["H3: Contact us"]
    C -. "no H3 between H2 and H4" .-> G["Outline says: something is missing here"]

The same page, read as an outline: the H4s skip a level that never existed, so a screen reader user jumping through headings hits a gap with no explanation.

The W3C’s page structure tutorial is plain about this, saying that “skipping heading ranks can be confusing and should be avoided where possible.”

The failure has a name

Back then I assumed this was one of those fuzzy “best practice” things, and I only learned otherwise when I found WCAG Technique F43. It’s filed as a documented failure, not a suggestion.

It describes structural markup used “to achieve a presentational effect, but indicates relationships that do not exist in the content.” Its worked example is an h3 and an h4 used only to style author names and dates.

That was my Heading 4 exactly. I used a heading to get a look, and the markup ended up claiming a hierarchy the content never had.

The skipped level is only the symptom. Skipping ranks counts as a best practice problem, while F43 is about the cause, which is choosing a heading for how it looks.

The advice for people writing in an editor comes from the W3C’s content author module on structure. “Changing the font size alone does not produce an accessible heading. It is more efficient to rely on the tool’s built-in functionality and then change the style later.”

Rian Rietveld puts the rule in a way I now keep taped to my brain, in her heading guide on The A11Y Project:

“Do not choose a heading by its size, but by its level in the context of the content.”

But I digress, because there’s a whole separate argument about how many h1 elements a page should have. I’ll let you go and enjoy that one on your own.

Why the dropdown invites it

None of my sources studied the editor’s toolbar itself. What follows is my own observation, not a cited finding.

Most heading dropdowns I’ve used show each option rendered in its own size. That turns a question about structure (“where does this sit in the outline?”) into a question about taste (“which one looks right?”).

Nothing in that menu tells you what comes before the heading you’re about to insert. That missing context is what I’d want an editor to show (a little “you are under H2: Plans” label would have saved me years of embarrassment).

If you build or theme editors, there are two changes I would try first:

  1. Let the theme restyle any heading level, so an h2 can be as small as an editor wants without anyone reaching for an h4.
  2. Warn on a skipped level at the moment of insertion instead of leaving it for an audit.

For the second one, here’s a quick console check I use to find skips on a live page:

const headings = [...document.querySelectorAll("h1, h2, h3, h4, h5, h6")];

headings.forEach((h, i) => {
  const jump = i > 0 && Number(h.tagName[1]) - Number(headings[i - 1].tagName[1]) > 1;
  if (jump) console.warn("Skipped a level before:", h.textContent);
});

It walks the headings in order and warns whenever a level jumps down by more than one, like an H2 followed straight by an H4. It’s a smoke test, not an audit, so axe-core’s heading-order rule is the better thing to put in your pipeline.

For anyone writing content, the habit is smaller. Choose the level by where the heading sits in the outline, and if it looks wrong, fix the look with styling afterward.

Outline first, looks second

The dropdown makes the wrong choice feel natural, because it shows you a picture when the screen reader reads a list.

If I could hand my younger self one rule, it would be to pick the number from the outline and let CSS worry about how it looks. That costs about ten seconds per heading, and it saves someone from hunting through a page with no signposts. Then listen to the result once with a real screen reader (NVDA with Firefox, or VoiceOver with Safari), because a heading list read aloud tells you things a green audit score won’t.

Have you caught an editor doing this, or been guilty of it yourself like I was? I’d love to hear about it in the comments.

Happy (inclusive) building! 🙂