Three-column page shell with header, nav, and footer
A hiking club wants its new-member handbook online. Build the page shell: a full-width header, three columns (section navigation, the selected section, and an “On this page” outline), and a full-width footer. The navigation switches which section is shown.
The starter code includes a SECTIONS array of 4 sections. Each section has a list of topics:
const SECTIONS = [
{
id: 'getting-started',
title: 'Getting Started',
summary: 'Pick a trail that fits your fitness, and tell someone your plan before you leave the trailhead.',
topics: [
{ title: 'Choosing a trail', body: 'Start with loops under 8 km ...' },
{ title: 'Sharing your plan', body: '...' },
{ title: 'Checking trail status', body: '...' },
],
},
// Packing List, Trail Etiquette, Weather Safety
];
Use each of these five elements exactly once, in this order in the HTML:
<header>: the site title Trailhead Handbook.<nav> (left column): one button per section, in SECTIONS order, labelled with the section title. Clicking a button selects that section. The button of the selected section has aria-current="page". No other button has it.<main> (center column): the selected section’s title, its summary, and each of its topics (title and body).<aside> (right column): the heading On this page and the topic titles of the selected section, in order.<footer>: the text © 2026 Trailhead Hiking Club.The first section, Getting Started, is selected when the page loads. Don’t nest the five regions inside each other.
The starter CSS has colors and spacing. Write the layout rules yourself, with CSS Grid or Flexbox.
On load:
nav [Getting Started]* Packing List Trail Etiquette Weather Safety
main Getting Started / "Pick a trail that fits your fitness..." / Choosing a trail ...
aside On this page: Choosing a trail, Sharing your plan, Checking trail status
Click "Weather Safety":
nav Getting Started Packing List Trail Etiquette [Weather Safety]*
main Weather Safety / "Mountain weather changes fast..." / Reading the forecast ...
aside On this page: Reading the forecast, Lightning, Heat and cold
* has aria-current="page"
The tests click your navigation buttons and read the text of each region, like a user with a screen reader would. You don’t need test ids or specific class names. They check that:
<header>, <nav>, <main>, <aside> and <footer> (or elements with the matching role: banner, navigation, main, complementary, contentinfo), in that order, and none is inside another.SECTIONS order, and only the selected one has aria-current="page".The tests run in a hidden frame, so they don’t measure the layout. Check it yourself in the preview. Capitalization and extra spacing don’t matter.