+ 2

Why do we need to use <header> tag if we have <h1>, <h2>, ...?

Before, I found that I can add headings using these tags: <h1>, <h2>, <h3>, <h4>, <h5>, <h6>. But now I came across the <header> tag to add headings. But why do we have another tag to add headings if we already have <h1>, <h2>, <h3>,...?

3rd Aug 2020, 6:09 AM
Abhijnan Saraswat Gogoi
Abhijnan Saraswat Gogoi - avatar
1 ответ
+ 2
<header> tag is not for headings. It is used to create the top panel where logo, navigation, etc. are located.
3rd Aug 2020, 6:32 AM
Lakshay Mittal
Lakshay Mittal - avatar