Why the <header> tag is used ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Why the <header> tag is used ?

17th Mar 2018, 11:34 AM
Zarin Tasnim
Zarin Tasnim - avatar
6 Answers
+ 24
17th Mar 2018, 11:39 AM
Nithiwat
Nithiwat - avatar
+ 6
<header> tag is a semantic element and it is not necessary to use, this tag is mainly used for defining header contents.
17th Mar 2018, 11:47 AM
Pravin Pandey
Pravin Pandey - avatar
+ 3
header tag defines a header for a section or a page
17th Mar 2018, 12:59 PM
Ujjwal Kumar
Ujjwal Kumar - avatar
+ 2
HTML5 <header> element .the <header>element specifies a header for a document or section.the <header> element should be used as a container for introductory content. you can use several <header> elements in one document.
17th Mar 2018, 4:54 PM
Parth Doshi
Parth Doshi - avatar
+ 1
Header consists header section of a webpage
18th Mar 2018, 2:21 AM
Master Mayank
Master Mayank - avatar
+ 1
to define header contents
18th Mar 2018, 4:53 AM
Sardul Dhyani
Sardul Dhyani - avatar