1.3. Structure the main content area with <main role="main">

The main content area of the page should be marked up with <main role="main">.


A page should only contain one <main> element and only one role="main" attribute.

<header role="banner">[…]</header>
<nav role="navigation">[…]</nav>
<main role="main">[…]</main>
<footer role="contentinfo">[…]</footer>

Find out more


Add a comment

Required fields are marked *.

Back to top