I need clarification please?

can someone tell me the difference between the header tag and title tag

The <title> tag is an specific tag that you add to the <head> element for your page and your page can have only one.

"The <title> tag is required in all HTML documents and it defines the title of the document.

The <title> element:

  • defines a title in the browser toolbar
  • provides a title for the page when it is added to favorites
  • displays a title for the page in search-engine results"

The <header> element is more like the name suggests, it is a header for a content; might that be a navigation section for your page or maybe the header of an article. And you can have as many headers as necessary in your page.

"The <header> element represents a container for introductory content or a set of navigational links.

A <header> element typically contains:

  • one or more heading elements
  • logo or icon
  • authorship information"


W3Schools is a great reference to learn more about HTML tags and its usage, and they also have many nice and compreehensive examples.

Hope it helps!

Thank you so much. I now get the difference clearly

1 Like