HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


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 tagWhile 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)




Its syntax is:- < header >

Code Explanation

All Tutorials related to HTML Advance

All Sections related to HTML