The <main> tag specifies the main content of a document.
<main> |
Yes | Yes | Yes | Yes | Yes |
The <main> tag is new in HTML5.
The <main> tag supports the Global Attributes in HTML.
The <main> tag supports the Event Attributes in HTML.
<!DOCTYPE html>
<html>
<body>
<!--from w w w. j a v a2 s . c om-->
<main>
<h1>Heading</h1>
<p>content.</p>
<article>
<h1>article heading</h1>
<p>article content.</p>
</article>
</main>
</body>
</html>