The #main area of a website

Hopefully, a simple question: Does the header (masthead) area sit within the area tagged as #main or does the #main area begin below the header area? Thanks

You probably don’t want to be using a div with an id of main any longer. You can use the <main> tag.

I probably wouldn’t expect to find a <header> within a <main>.

2 Likes

Thanks

If it’s a main <header> element for the whole page it would likley come before the <main> element.
If you have sub <header> elements, eg, headers for sections, they would likley be within the main element.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.