The <main> element represents the main content of the <body> element of a HTML document. The <main> element is supposed to be used as a container of the main and unique content of a document, and thus should not be applied to the frequently repeated or re-used content such as sidebars, advertisement blocks, across site footers, etc? It must be used only once within the document.
Syntax:
<main></main>
Attributes:
NOTE: The <main> tag must not be a child of an <article>, <aside>, <footer>, <header>, or <nav> tags.
Example
The main tag basic example:
Comments
No comments have been made yet.
Please login to leave a comment. Login now