HTML <main> tag
HTML <main> tag
The <main>
tag defines the main content of the <body> of a document.
Note: The content inside the <main>
tag should be unique and is directly related to or expands upon the central topic of a document.
Warning: Content that is repeated across a set of documents or document sections such as copyright information, logos, navigation links, sidebars, and search forms shouldn't be included unless the search form is the main function of the page.
Example
Attributes
There is no special attributes for <main> tag. Only Global attributes.
Reminder
Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in HTML.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.