HTML <main>Tag: The HTML<main>tag describes main content in the document. While the content inside the <main> element should be unique to the document. And should not contain any content that is repeated across documents such as sidebars, navigation links, copyright information, site logos, and search forms.
HTML<main>Tag
This HTML main tag supports both the global and the event attributes. HTML 5 support <main> tag.
Syntax: <main> Text </main>
Browser compatibility
The HTML<main>tag is supported by different types of browsers.
- Chrome-6.0
- Firefox-4.0
- Opera-11.1
- Safari-5.0
- Internet Explorer-12.0
Example:
<!DOCTYPE html> <html> <body> <main> <h1>Freshersnow Tutorials</h1> <p>Learn Tutorials For Free. For Everyone. Forever.</p> </main> </body> </html>
Output:
Freshersnow Tutorials
Learn Tutorials For Free. For Everyone. Forever.