Skip to main content

html-tags.com

<main>

The document's unique dominant content region — the main landmark screen readers jump to.

Baseline: Widely available · Sectioning & landmarks

When to use it

Exactly one per page, wrapping everything that is the page's actual subject; give it an id so the skip link can target it.

When not to

Never more than one visible main, and never put site chrome (nav, banners) inside it.

Key attributes

id
skip-link target

Example

<main id='main'>
  <article>…the page's subject…</article>
</main>
Source — this snippet needs a fuller context to render.

Authoritative references