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


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


        <!-- first article content -->

        <!-- second article content -->

        <!-- third article content -->


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

Browser support

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