Main tag HTML 5 example
The main tag specifies the main content of a document. The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application. 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.
The main tag is better for SEO point of because search can better understand with the help main container text that what is exactly particular page is stand for.
<!DOCTYPE html>
<html>
<body>
<main>
<h1>Operating
System</h1>
<p>Window7,
window 10 , Linux, Unix are the most used browsers today.</p>
<article>
<h1>Window 7</h1>
<p>Window 7 is
one of largest used OS in India </p>
</article>
<article>
<h1>Window 10</h1>
<p>Window 10 is
current version of Microsoft windows OS single pc category . which is improve
version after window8 because window 8 got many type of drawback. </p>
</article>
<article>
<h1>Linux</h1>
<p>Linux is an
example of multiple user operating system and one most useful OS around the
world .</p>
</article>
</main>
<p><strong>Note:</strong> The
main tag is not supported in Internet Explorer 11 and earlier versions.</p>
</body>
</html>
Next Topic
No comments:
Post a Comment