HTML <main> tag

Updated: 11/13/2018 by Computer Hope
HTML main tag

The HTML <main> tag is a block element denoting the main content of the web page <body> that is unique to that page. If should not contain any content that is repeated throughout the site, such as site logos, Copyright information, navigation links, sidebars, etc. There cannot be more than one <main> element in a single document.

Note

The <main> element cannot descend from an <article>, <aside>, <footer>, <header>, or <nav> element.

Attributes

Within an HTML (hypertext markup language) tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <main> tag does not have any unique attributes, it does utilize all of the standard attributes.

Compatibility

Edge Internet Explorer Firefox Safari Opera Chrome
12.0+ Not Supported 21.0+ 7.0+ 16.0+ 26.0+

Author, Browser, Compatibility, Container tag, Copyright, HTML, Logo, Web design terms