Headings are a document outline, not a size chart. The order page measured on
2026-09-02 has an outline of H1 H2 H4 H2, which is a level skipped
and then a jump back. A screen reader user navigating by heading, which is how
most of them move through a page, is told there is a level four section under a
level two with nothing between them, and has to work out whether something is
missing.
The rule is one h1 per page naming the page, and no level
skipped on the way down. If a heading is the wrong size, that is a stylesheet
problem: h4 { font-size: 1rem } costs one line and keeps the
outline honest. Choosing the level by how big it looks is the single most common
accessibility fault in otherwise careful markup.
Landmarks are the other way people move
<header>,<nav>,<main>,<aside>and<footer>are announced as regions and can be jumped to
directly- There is exactly one
<main>, and it is what a skip link
targets - Two
<nav>elements needaria-labelto tell them apart, or both are announced as
navigation <section>is only a landmark when it has a name, so a
bare section is a div with extra letters
That last point is worth being exact about, because section is
used decoratively more than any other element in this list. Give it anaria-labelledby pointing at its own heading and it becomes a region
a reader can jump to; leave it bare and it changes nothing at all.
Page regions
The landmark elements assistive technology can jump between
Beyond headings, semantic region elements divide a document into named stops around one main body.
- headerTop-level banner region
- nav with aria-labelLabel each nav when a page has more than one
- section with aria-labelledbyBare section is a div; naming it promotes it to a region
- asideComplementary sidebar region
- footerBottom page landmark
There is always one main element, and it serves as the direct destination for a skip link.
Interactive Practice Lab
Edit and run this snippet directly in your browser (zero setup)
<article style="padding:14px;border:1px solid color-mix(in srgb,currentColor 24%,transparent);border-radius:12px"> <h3 style="margin:0 0 6px">Semantic Card</h3> <p style="margin:0 0 10px;opacity:.85">Edit this HTML and click Run to preview live.</p> <button onclick="console.log('Button clicked at', new Date().toLocaleTimeString())">Test Event</button></article>Live Big-O Complexity & Binary Search Race Lab
Compare complexity curves at scale and watch Linear vs Binary Search race live.
The elements that carry behaviour, and the divs that do not
A <button> is focusable, is in the tab order, answers
Enter and Space, and is announced as a button. A <div> with a
click handler has tabIndex -1 and does none of those, and making it
equivalent takes tabindex="0", role="button", a
keydown handler for two keys, and a focus style. Four things to replace one
element, and every one of them is a thing to keep working later.
Button and link vs clickable div
What native interactive elements include for free
Imitating a button or link with a div forces you to rebuild focus, keyboard events, roles, and browser context actions by hand.
The simple rule: if it navigates somewhere use an a with href, if it performs an action use a button, and never use a div for either.
The same is true of <a href> against a div that navigates
on click: no middle click, no open in new tab, no copy link address, no status
bar preview. The rule that covers all of it: if it goes somewhere it is a link,
if it does something it is a button, and neither is ever a div.
What to run in 2026
The browser's accessibility tree panel is the tool, free in every browser,
and it shows what assistive technology actually receives rather than what the
markup says. An element with no accessible name shows as blank there, which is
the fault that is invisible in the rendered page. It replaced installing a
screen reader to check one button.
Automated vs manual checks
What an extension catches and what still needs a keyboard
Automated checkers catch roughly a third of accessibility issues; the accessibility tree and keyboard navigation uncover the rest.
- Missing accessible namesBlank entries flagged right away
- Colour contrast errorsChecked mechanically against text rules
- Skipped heading levelsOutline gaps spotted by DOM scan
- Full keyboard reachabilityRequires tabbing through with a real keyboard
- Accessibility tree outputVerify what assistive tech actually receives in DevTools
- Interactive focus behaviourConfirm Enter, Space, and focus state during real tasks
Knowing which third an automated report checks stops a clean scan from creating false confidence.
An automated checker is the second, free as a browser extension, and the
honest framing is that it catches roughly a third of what matters: missing
names, contrast, and the outline above. The other two thirds need a person with
a keyboard, and knowing which third you have checked is more useful than the
report. It replaced nothing, because most teams were checking none of it.
Where this stalls people
The stall is treating semantics as a compliance exercise done at the end.
Retrofitting is expensive precisely because the div soup version already works
for the person who wrote it, so every change is a risk with no visible benefit
to them, and it gets deferred forever.
One page, read by heading
The outline a reader navigates, and the rung that is missing
Somebody moving through this page by heading hears these levels in this order, and the third one arrives with nothing to hang from.
- 05h2 DeliveryCorrect, and it makes the jump above look deliberate when it was notback up
- 04h4 HexagonsTwo levels below its section, which reads as content lostskipped to
- 03h3Nothing on the page is at this level, so the next rung has no parentmissing
- 02h2 QuantitiesA top level section of the pagesection
- 01h1 Tile orderNames the page. One per document, and the first thing announcedonce
The ladder says nothing about size. Every rung here can be styled to any size at all, and the outline is what a reader navigating without sight is given instead of the layout.
What makes it cheap is choosing the element while writing, which costs
nothing: a button instead of a div, a heading level from the outline rather than
the size, one main. That is the whole practice, and choosing a button is faster than writing the
four attributes a div needs to imitate one. The interactive version of this is
inputs, labels, validation and
submission, the order the parser reads it in is
head, body, and the order a
document is read in, and the styles that make a correct outline look right
are how a page is laid out and how it
looks, inside the structure under every
page.