Why is <header>tag used instead of<div id=""header""> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is <header>tag used instead of<div id=""header"">

18th Sep 2020, 11:37 PM
Great
Great - avatar
5 Answers
+ 6
Both methods are same.
19th Sep 2020, 1:53 AM
Killú
Killú - avatar
+ 3
<header> tag directly shows it's content are headers where <div> are user for various purpose which may sometime failed to show what content are inside it.
18th Sep 2020, 11:52 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
I now get the point
19th Sep 2020, 12:24 AM
Great
Great - avatar
+ 1
That's correct too
20th Sep 2020, 6:28 PM
Arshia
Arshia - avatar