Sub topic 4
Sketching Headings and Landmarks
Assume you already understand basic wireframing, common controls, and how HTML elements form a web page. This chapter focuses on turning a visual layout into a structure that people can navigate with a screen reader, keyboard, or page-navigation shortcut.
Why structure belongs in the wireframe
A wireframe shows more than position. It also communicates hierarchy, grouping, and purpose. A large text label may look like a heading, while a bordered region may look like a section. Unless you record that meaning, a developer may implement only visual styling.
Screen readers expose headings and landmarks as navigation lists. A landmark is a named region with a common purpose, such as navigation, main content, search, or complementary information. These regions let a user jump directly to the part of the page they need.
Use one page-level h1 for the main subject. Use h2 for major sections and h3 for subsections within an h2. Do not choose a heading level because its font size looks right. Heading levels describe nesting.
Mapping a wireframe to structure
Start by identifying the page's main regions:
- A
headercontains introductory content or site-level controls. - A
navcontains a group of navigation links and needs a specific label when there is more than one navigation region. - A
maincontains the page's unique content. A page should normally have onemainregion. - An
asidecontains related content that is not essential to the main task. - A
footercontains closing or site-level information. - A
sectiongroups related content and should usually have a heading.
Then create a heading outline. For an order-history page, the outline might be:
- Order history
- Recent orders
- Older orders
- Need help?
The visual design can place “Need help?” in a sidebar, but its heading level still depends on its relationship to the page content.
<header>
<nav aria-label="Main">
<a href="/">Store</a>
<a href="/orders">Orders</a>
</nav>
</header>
<main>
<h1>Order history</h1>
<section aria-labelledby="recent-heading">
<h2 id="recent-heading">Recent orders</h2>
<p>Your three most recent orders appear here.</p>
</section>
<section aria-labelledby="older-heading">
<h2 id="older-heading">Older orders</h2>
<p>Orders from previous months appear here.</p>
</section>
</main>
<footer>Contact support</footer>The aria-labelledby attribute connects a region to its visible heading. Prefer native HTML elements first. Add ARIA only when native semantics do not provide the needed relationship.
Checking the outline before handoff
Read only the headings aloud. The sequence should tell a clear story without relying on visual placement. If it does not, revise the wireframe or its labels.
Check that:
- Every major region has a clear purpose.
- Heading levels do not skip because of styling.
- Repeated regions have distinct names, such as “Main navigation” and “Account navigation.”
- The page has one clear primary content region.
- A user can understand the page from headings alone.
Exercise
A wireframe has a site header, a sidebar containing account links, and a primary area titled “Billing.” Which landmark and heading structure would you choose?
Show answer
Use a header for the site header, a navigation landmark named “Account navigation” for the sidebar links, and one main landmark containing an h1 titled “Billing.” Add lower-level headings for sections inside the billing content.