I've done a few searches for my answer to my question, but I can't seem to get a straight answer other than the cut-and-pasted responses which DO NOT answer my question.
My question is, "Can I use the <main>
tag in different pages of my website?"
The websites I've researched state:
"The <main>
tag specifies the main content of a document.
The content inside the <main>
element should be unique to the document.
It should not contain any content that is repeated across documents such as sidebars, navigation links, copyright information, site logos, and search forms.
Note: There must not be more than one <main>
element in a document. The element must NOT be a descendant of an <article>
, <aside>
, <footer>
, <header>
, or <nav>
element."
So...
I understand the <main>
tag specifies the main content of a document.
I understand that the content inside the <main
> element should be unique to the document.
I also understand it should not contain any content that is repeated across documents such as sidebars, navigation links, copyright information, site logos, and search forms.
And here is where my question arises...what does it mean by "document?"
Does the word "document" mean:
A) I could use it in my index.html, about_us.html and contact.html, but only once in each of those pages.
or does it mean
B) I cannot use <main>
within other pages of the website. Which would mean that if I use it on my index.html then I would not be able to use it in my other pages like about.html or contact.html...?
Websites researched:
https://www.w3schools.com/tags/tag_main.asp
http://blog.teamtreehouse.com/use-html5-sectioning-elements
Thank you for clarifying.