Sub topic 4
Sketching headings and landmarks
This chapter assumes you can read basic HTML, know the common page regions (header, navigation, footer), and have sketched wireframes before. By the end, you will be able to plan a heading outline and a set of landmarks directly on a wireframe, so a screen reader user can move through the page as quickly as a sighted user can scan it.
Why structure matters before pixels
Sighted users scan a page by size, position and spacing. Screen reader users get the same overview from two things in the code: headings and landmarks.
- A heading is a title for a block of content, marked up as
h1toh6. Screen readers can list all headings on a page and jump between them. - A landmark is a named region of the page, such as the main content or the navigation. Screen readers can list landmarks and jump to them directly.
Both support WCAG success criterion 1.3.1 (Info and Relationships, level A), which requires that structure shown visually is also available in the code. Criterion 2.4.1 (Bypass Blocks, level A) requires a way to skip repeated content, and landmarks are one accepted technique. Criterion 2.4.6 (Headings and Labels, level AA) requires that headings describe their topic.
You decide all of this when you draw boxes. If a region has no title in the wireframe, the developer has nothing to turn into a heading.
Landmarks
HTML has native elements that create landmarks. Use them in the wireframe as region names.
| Wireframe region | HTML element | Landmark role | Notes |
|---|---|---|---|
| Site header with logo | `header` (direct child of `body`) | banner | One per page |
| Navigation links | `nav` | navigation | Label it if there is more than one |
| Primary content | `main` | main | Exactly one per page |
| Side content, related links | `aside` | complementary | Only if the content is related but separable |
| Site footer | `footer` (direct child of `body`) | contentinfo | One per page |
| Search box | `search` or `form role="search"` | search | Wrap the whole search control |
| Named group of content | `section` with an accessible name | region | Only becomes a landmark when named |
Two rules to apply on the wireframe:
- Everything belongs in a landmark. Content outside any landmark is easy to miss when a user navigates by region. Check that no box on the page sits outside one.
- Label duplicates. If a page has two navigation areas, such as a main menu and a breadcrumb trail, give each a distinct label like "Main" and "Breadcrumb". Without labels, a screen reader announces "navigation" twice and the user cannot tell them apart.
Do not add landmarks everywhere. A page with fifteen regions is as hard to move through as a page with none. Aim for the few regions a user would actually want to jump to.
Headings
Headings give the page an outline. A good outline reads like a table of contents.
- Use exactly one
h1, describing the page's purpose. On an order history page, that is "Order history", not the site name. - Use
h2for major sections,h3for subsections inside them, and so on. - Do not skip levels going down. An
h2followed directly by anh4suggests missing content. - Choose the level by structure, not by looks. If a heading must look smaller, that is a styling decision for later. Level is about meaning.
Mark levels on the wireframe
Wireframes often show only size and weight. Add a small tag beside each title, such as "H1", "H2", "H3". This removes guesswork and prevents the common error where a developer picks a level to match the visual size.
Check the outline
List your headings in order, indented by level. For an order history page:
H1 Order history
H2 Filter orders
H2 Recent orders
H3 Order #1042
H3 Order #1041
H2 Older ordersRead it aloud as if it were the whole page. If you can tell what the page offers, the outline works. If two headings sound the same, such as several "Details", make them specific.
From wireframe to markup
This is the markup that the wireframe above would produce. Note how each region and heading in the sketch maps to one element.
<header>
<nav aria-label="Main">…</nav>
</header>
<main>
<h1>Order history</h1>
<section aria-labelledby="recent-heading">
<h2 id="recent-heading">Recent orders</h2>
…
</section>
</main>
<footer>…</footer>Several details are worth noticing:
- The
navhasaria-label="Main". The screen reader announces "Main navigation". - The
sectionhasaria-labelledbypointing at its own heading. This gives it a name, so it becomes a region landmark, and it reuses the visible heading text instead of inventing a second label. - There is one
h1, insidemain.
A page layout as a diagram
The diagram shows how landmarks contain headings for this page.
Common errors
Headings used for looks
A designer wants bold, large text for a promotional line and a developer marks it as a heading. Now the outline contains a heading that is not a title. Only mark titles of content blocks as headings. Use plain text styling for the rest.
Missing or multiple `h1`
A missing h1 leaves the page without a clear identity. Multiple h1 elements are allowed by HTML, but the outline algorithm that was meant to make them meaningful was never implemented by browsers or assistive technology. Plan one h1.
Navigation by visual position only
A sidebar of filters appears on the left of the wireframe. If it is marked only as a div, screen reader users get no region for it. Decide what it is. A group of filters for the main content is often best wrapped in a section with a heading, or a form with a name, rather than being left unlabeled.
Overusing `aside`
aside means content that is related to but separate from the main content. A promotional banner or a "help" box can qualify. The main product list does not. Putting primary content in an aside hides it from users who skip to main.
Landmark labels that repeat the role
A label of "Main navigation" on a nav is announced as "Main navigation navigation". Label it "Main". The role is already announced.
Skip link forgotten
Landmarks help, but many keyboard-only users without screen readers rely on a visible "Skip to main content" link. Put it first in the tab order on your wireframe and note that it targets main. Chapter content on focus order covers this in more detail.
Annotating your sketch
Add three kinds of notes to the wireframe:
- A region tag on each box, such as "banner", "main" or "nav: Breadcrumb".
- A level tag on each title, such as "H2".
- A short note for any region needing a label, giving the exact label text.
These notes cost almost nothing at this stage. Later chapters cover annotation as a full handoff practice.
Quick self-check
Before you move on, verify your wireframe against this list:
- Every area of the page falls inside a landmark.
- Exactly one
mainand oneh1exist. - No heading level is skipped.
- Repeated landmark types have unique labels.
- Each heading describes the content under it.
Exercise
A wireframe for a product page has a top bar with the logo and main menu, a breadcrumb trail above the title, a product title, a "Reviews" block, and a footer with legal links. List the landmark for each area, say which area needs an accessible label and why, and give the heading levels you would assign to the product title and the "Reviews" block.
Show answer
The top bar is a header (banner) containing a nav. The breadcrumb is a second nav. The product title and Reviews block go inside main. The footer is a footer (contentinfo). Both nav landmarks need labels, such as "Main" and "Breadcrumb", because two unlabeled navigation landmarks are announced identically and cannot be told apart. The product title is the H1. The Reviews block is an H2 inside main, and individual review titles, if any, would be H3.
Exercise
A designer shows a large promotional line, "Free shipping this week", styled like a section title above the product grid. A developer wants to mark it as an h2 to match the look. Should they? What should they do instead?
Show answer
No. It is not the title of a content block, so marking it as a heading adds a false entry to the outline. Style it as plain text, for example in a paragraph, with CSS for size and weight. If the grid itself needs a title, such as "Featured products", that text is the h2.