According to w3c:
The header element typically contains the headings for a section (an h1-h6 element or hgroup element), along with content such as introductory material or navigational aids for the section.
So the header
can contain h1
, etc. But not every h1
should be wrapped in a header
. Only if it is related to the section
.
The header
tag is just semantics. It helps browsers (and developers) to understand your page better.