HTML5 Main Tag

Home > HTML5 Tutorial > HTML5 Main Tag

Best PHP Live Project Based Winter Training in Noida for more details click here



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">

			<article>

			<h4>Main Content</h4>

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

			</article>

			</main>

			<footer>Footer Section Here</footer>

 

1) Chrome 2) Firefox 3) Safari