If I am not using <header>, than also I am getting same result.... so what is use of header? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

If I am not using <header>, than also I am getting same result.... so what is use of header?

12th Nov 2016, 9:04 AM
Raj madheshia
Raj madheshia - avatar
2 Answers
+ 1
Inside the body tag you can theoretically use divs only but the readability and management will be horrible. Different tags are useful to make your own CSS framework adding your style to different elements. The header is used commonly to represent a set of navigational links or introductory content of your page/site.
12th Nov 2016, 10:10 AM
Gleb Golov
Gleb Golov - avatar
+ 1
for example you will use a background color only for the header or for body
15th Nov 2016, 3:09 PM
anne_german