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:

			<header>Header Section</header>

			<main role="main">


			<h4>Main Content</h4>

			<p>The main content goes here...</p>



			<footer>Footer Section Here</footer>


1) Chrome 2) Firefox 3) Safari