<main>

The main element represents the dominant, unique content of the document body.

Since HTML5 Spec ↗

Syntax

<main>...</main>

Examples

<body>
  <header>...</header>
  <main>
    <h1>Article Title</h1>
    <p>Primary content.</p>
  </main>
  <footer>...</footer>
</body>
Output
Renders the page's primary content as the main landmark, skippable via "skip to content" links.

Notes

There must be only one visible <main> per page and it must not be nested inside article, aside, footer, header, or nav. It maps to the main ARIA landmark.

Browser & runtime support

EnvironmentSince version
chrome 26
firefox 21
safari 7.0
edge 12

See also