Page
A page that is not an app shell is laid out from its landmarks alone: the <header>, <nav>, <main> and <footer> that are children of <body> share one centered column, --dui-size-page wide at most, with an inline gutter so nothing touches the window edge.
Live example
Document page
<a class="visually-hidden" href="#main">Skip to main content</a>
<header>
<a href="#home" data-link="quiet"><strong>Northwind</strong></a>
<nav aria-label="Main" data-nav="horizontal">
<ul>
<li><a href="#features">Features</a></li>
<li><a href="#pricing">Pricing</a></li>
<li><a href="#guides" aria-current="page">Guides</a></li>
<li><a href="#sign-in">Sign in</a></li>
</ul>
</nav>
</header>
<main id="main">
<article>
<h1>Shipping your first order</h1>
<p data-text="lead">From a new order to a parcel on its way, in four steps.</p>
<h2>Pick and pack</h2>
<p>Open the order, check each line against the shelf, and scan the items into the parcel. Northwind warns you when a count does not match.</p>
<h2>Choose a carrier</h2>
<p>Rates from your connected carriers appear side by side. The cheapest one that meets the promised date is selected for you.</p>
<div class="grid">
<article data-card>
<h3>Standard</h3>
<p>Three to five working days. Tracking included.</p>
</article>
<article data-card>
<h3>Express</h3>
<p>Next working day when packed before 3 PM.</p>
</article>
<article data-card>
<h3>Collect</h3>
<p>The customer picks the parcel up from your warehouse.</p>
</article>
</div>
<h2>Print and ship</h2>
<p>Print the label and packing slip together, then mark the order as shipped. The customer gets the tracking link by email.</p>
<p class="cluster">
<a href="#new-order" data-button="primary">Create an order</a>
<a href="#guides" data-button="secondary">All guides</a>
</p>
</article>
</main>
<footer>
<p data-text="small">Northwind is an example company. MIT licensed.</p>
</footer>
Landing page
<a class="visually-hidden" href="#main">Skip to main content</a>
<header>
<a href="#home" data-link="quiet"><strong>Northwind</strong></a>
<nav aria-label="Main" data-nav="horizontal">
<ul>
<li><a href="#features" aria-current="page">Features</a></li>
<li><a href="#pricing">Pricing</a></li>
<li><a href="#guides">Guides</a></li>
<li><a href="#sign-in">Sign in</a></li>
</ul>
</nav>
</header>
<main id="main">
<section data-band="hero" aria-labelledby="hero-title">
<h1 id="hero-title">Ship every order from one place</h1>
<p data-text="lead">Northwind picks the carrier, prints the label and tells the customer, so your team only packs.</p>
<p class="cluster">
<a href="#sign-up" data-button="primary">Start free</a>
<a href="#demo" data-button="secondary">Book a demo</a>
</p>
</section>
<section data-band aria-labelledby="features-title">
<h2 id="features-title">Built for small warehouses</h2>
<div class="grid">
<article data-card>
<h3>Rates side by side</h3>
<p>Every connected carrier, priced for each parcel.</p>
</article>
<article data-card>
<h3>One label run</h3>
<p>Labels and packing slips print together.</p>
</article>
<article data-card>
<h3>Tracking by email</h3>
<p>Customers get the link the moment you ship.</p>
</article>
</div>
</section>
<section data-band data-surface="inverse" aria-labelledby="cta-title">
<h2 id="cta-title">Ready for your first parcel?</h2>
<p>Set up takes ten minutes. No card needed.</p>
<p class="cluster">
<a href="#sign-up" data-button="primary">Start free</a>
</p>
</section>
</main>
<footer>
<p data-text="small">Northwind is an example company. MIT licensed.</p>
</footer>
Sign-in page
<main id="main">
<article data-card aria-labelledby="sign-in-title">
<h1 id="sign-in-title">Sign in to Northwind</h1>
<p data-text="muted">Welcome back. Enter your details to continue.</p>
<form class="stack" method="post" action="#sign-in">
<div data-field>
<label for="sign-in-email">Email</label>
<input type="email" id="sign-in-email" name="email" autocomplete="email" required>
</div>
<div data-field>
<label for="sign-in-password">Password</label>
<input type="password" id="sign-in-password" name="password" autocomplete="current-password" required>
</div>
<label><input type="checkbox" name="remember"> Remember me on this device</label>
<button type="submit" data-button="primary">Sign in</button>
</form>
<footer>
<p data-text="small"><a href="#reset">Forgot your password?</a></p>
<p data-text="small">New to Northwind? <a href="#sign-up">Create an account</a></p>
</footer>
</article>
</main>
API
| Attribute or value | Effect |
|---|---|
<body> > <header> | the site header; with a <nav> child, the brand and the nav share a row and wrap when narrow |
<body> > <main> | the content column |
<body> > <footer> | small print, separated by a hairline |
Header and footer hairlines span the text column, not the gutters.
| Attribute or value | Effect |
|---|---|
<body> > <main> with one data-card as its only child | a narrow, centered page (sign-in, sign-up, error); vertically centered too when the page has no header |
data-band | a <section> in <main> that runs the full window width on the sunken surface, with its content kept in the column; bands that follow each other touch |
data-band="hero" | a band with no fill, so the page pattern shows, and a hero-size h1 (h2 one step down); as main's first child it meets the header with no gap |
Combine with data-surface="inverse" for a dark band on a light page.
It never applies inside an app shell, whose landmarks are children of the shell, and author CSS still wins (layered, zero specificity).
Accessibility
- No attribute or class: write the landmarks and the page is laid out (APG landmark regions).
- Our choice: the layout follows the landmarks a page needs anyway, not a wrapper element, so a page written as a plain document (WCAG 1.3.1, 2.4.1) is also a finished one.