main tag


Prev Tutorial Next Tutorial

<main> tag

Html <main> tag is used to represent the main content of the <body> tag.

The content inside the <main> element should be unique to the document. It should not contain any content that is repeated across documents such as sidebars, navigation links, copyright information, site logos, and search forms.

Note: Not use more than one <main> element in a document.

Syntax

<!DOCTYPE>
<html>
<body>
<h3>Programming Language</h3>
<main>
<article>
<h3>Html</h3>
<p>Html is very simple to use and it is also easy to learn.</p>
</article>
<article>
<h3>Java</h3>
<p>Java is an object oriented programming language.</p>
</article>
<article>
<h3>JavaScript</h3>
<p>JavaScript is mainly used for client side validation.</p>
</article>
</main>
</body>
</html>

Result

Programming Language

Html

Html is very simple to use and it is also easy to learn.

Java

Java is an object oriented programming language.

JavaScript

JavaScript is mainly used for client side validation.

Browser supported

Element
<main>YesYesYesYesYes

Prev Tutorial Next Tutorial

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain, Tutorialday.com, SeosmoTools.com @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: hitesh.xc@gmail.com WhatsApp no. 8882538826

Yahoo Advertisements