Semantic-html

Can I put <header> element into the main <main>`` element ? …It’a bit of confusing.

i don’t think it matters. Looking at the documentation for element:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/element

we can see an Obsolete warning. So then don’t use <element>

MDN also tells us which child elements are allowed, so you could this website to verify further questions. Reading and understanding documentation is important.

Sorry,I made a wrong question before. Now, I have corrected it. You can check that question and please help me.

Can I put <header> element into the main <main>`` element ? …It’a bit of confusing.

Like i said, you could use MDN to find the <main> element, and then see which elements are allowed.

This is preciously the reason documentation exists :wink:

2 Likes