HTML Dog
Skip to navigation

HTML Tag: main

The main content of the body — content that is unique to the page, excluding content that might be repeated on multiple pages, such as navigation.

main commands presidential status. There should be no more than one instance and should not be included inside article, aside, footer, header, or nav.

Optional Attributes

Global attributes

Example


<!-- content, including navigation, perhaps -->

<main>

    <article>
        <!-- first article content -->
    </article>

    <article>
        <!-- second article content -->
    </article>

    <article>
        <!-- third article content -->
    </article>

</main>

<!-- content, including a footer, maybe -->

Browser support

Can I Use html5semantic? Data on support for the html5semantic feature across the major browsers from caniuse.com.