HTML <main> Tag


The HTML <main> tag is an HTML5 element that defines the primary content of an HTML document, and each document should only have one <main> element.

The <main> element's content should be unique to the document.

Sidebars, navigation links, copyright information, site logos, and search boxes are examples of content that should not be repeated throughout documents.

Syntax

Example

Preview

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
<main> 26.0 21.0 7.0 12.0 16.0