A Simple Guide on Main Tags in HTML
A Simple Guide on Main Tags in HTML What is a main tag A main tag in html is a tag that has a unique and important content for that particular html page or document and it should not be an information that is repeated across all other pages of the document. It is also not supposed to be the child element of a header, article, footer, nav, aside of a html page. Another important point to consider and note here is that the html document should not by any means have more than one main tag. Code Syntax <main> // some content to do with the main tag put here </main> Example Code for using a main tag Given below is a code block to understand the main tag usage in an html document. As you can understand here, you cannot use this content between the main tags in any other page of the html document as this is the main information provided inside the main tag and cannot be repeated across the other pages of the document. <main> <h1>Coding F...