HTML5 header
Header Tag
The header tag is used as a head for the webpage. Before introducing it, we use < div id="header" >. However, with its introduction of it, we can simply use that tag for the same purpose. People tend to confuse header tag with head tag but they are totally different. The Head tag is used before the body tag and has crucial information related to the webpage i.e, meta tags and title tag. While header tag is used just after we start body tag and is used as the head of the webpage.
Uses of header tag:-
- logo or icon
- authorship information
- single or multiple heading elements (h2 - h6)
Syntax:-
Its syntax is:- < header >