main tag wraps around the main content of the document. The content inside it should be unique and not be anything that repeats across documents (like sidebars, navigation menus, etc.).
There should only be one
<main> tag per document, and it should not be inside any of the following:
<main> <h1>Title of the document</h1> <p>Introductory paragraph.</p> <article> <h2>Article title</h2> <p>Content of the article.</p> </article> </main>
Have a code example of
<main>? Submit a codepen.io demo and we'll showcase it here ↴
Help @reference spread the word by sharing this article on Twitter...Tweet This