Why some use header instead of h1?

Tell us what’s happening:
Why do some people use header instead of h1?

Is it because we can modify the title the way we want it?

is it because we can have multiple headers with similar properties? But we can use h2 for that. right?

thanks

Challenge: Build a Technical Documentation Page

Link to the challenge:

Hello there,

I realise you potentially thought of this question when seeing the user-stories of the project, but the question is not related to the Certification Projects. So, I have moved this to a more suitable subforum.

To answer your question. It mostly has to do with Accessibility. The header and h1 tags are not to be used interchangeably.

W3Schools explains the use of the header tag well: https://www.w3schools.com/tags/tag_header.asp

Hope this helps

hi

ummm as you said that the header and h1 should not be used interchangeably.

then why in the challenge the tester does not accept h1-h6 be used in the <header>? But instead it wants a text in the header.

i know the tag header is like a container. Thats what confuses me, can we use header instead of h1-h6.

Before HTML5 sections of a page were usually divided with div elements that had appropriate class names. HTML5 has semantic elements that let you set up common sections.
Read more about semantic elements.
You can also Google something like your question and find answers.