Home >>HTML5 Tutorial >HTML5 Main Tag

HTML5 Main Tag

How to Use Main Tag

The HTML <main> element is used to create the main content of an HTML document. The <main> element contains the main content of the page . the main element contain unique content of that document. This element excludes any content that is repeated multiple pages (such as navbar,header, footers).

How to Embed Main Element:

Ex(i)

<header>Header Section</header> <main role="main"> <article> <h4>Main Content</h4> <p>The main content goes here...</p> </article> </main> <footer>Footer Section Here</footer>

Broswer Support

1) Chrome 2) Firefox 3) Safari

No Sidebar ads