Rule

Content outside landmarks

All readable content belongs inside a landmark region.

Rule
region
Type
Best practice, not a WCAG requirement. It runs when Best practices is switched on.
Severity
Moderate

What it checks

On a page that has landmarks, the rule fails text, images, media and form controls that sit outside all of them. Each stray block is reported once, at its outermost element. A page with no landmarks at all passes this rule, since the missing main landmark is reported once by another rule.

A skip link placed before the first landmark is allowed. Decorative images and unnamed inline <svg> are not counted. Screen reader users often move through a page by landmark, and content outside every landmark is easy to miss that way.

Example

Fails

<header>
  <a href="/">Home</a>
</header>
<p>Our offices close early on Friday.</p>
<main>
  <h1>News</h1>
</main>

Passes

<header>
  <a href="/">Home</a>
</header>
<main>
  <h1>News</h1>
  <p>Our offices close early on Friday.</p>
</main>

The engine is tested against both examples.

How to fix it

Move the content into a landmark: <main>, <nav>, <header>, <footer>, <aside> or a labelled <section>.

Check your own pages

This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.