main tag

Advertisements

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 Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements