HTML header tag

<header> tag contains the introductory content of a section or a page. It includes logos, search input and navigational links of other pages. It may contain headings (h1-h6).


  <h1> web site </h1>
  <p> website is a set of informative webpages running on the broswers. </p>
  <dd> <a href=""> Visit home page </a> </dd>
  <dd> <a href=""> Learn html </a> </dd>
Try </>

Specific uses

It represents the introductory content for a section or a page. It contains the navigational links, headings etc.


 <img src="files/logo.png" width="200px" height="200px"/>
  <li> <a href="#">Home</a> </li>
  <li> <a href="#">tutorials</a> </li>
  <li> <a href="#">about</a> </li>


Tag omission

Both opening and closing tags are necessary for the header element.

Global Attributes

All global attributes are applicable on the header element.

Was this article helpful?




Get the newsletter