HTML Header Tag

HTML Header TagHTML Header tag <header> is used to classify a header for an HTML Resource or webpage.

Ideally header should contain introduction of the HTML resource or webpage.

Header tag is a closed tag and needs a closing header HTML tag </header>

An HTML resource can have multiple HTML Headers in it.

Note: Header tag is new in HTML 5.


HTML Header Tag Syntax

< header >
Some Information Here..
</ header >

HTML Header Tag Example

HTML Header Tag Code Output
<header><h1> This page deals with Header Tag</h1>
<p> Header tag is used to provide a heading to HTML page</p>
</header>
This page deals with Header Tag

Header tag is used to provide a heading to HTML page

In the above Header Tag example we have used the header tag to provide the information about this current page.

HTML header tag supports all HTML Global Attributes and HTML Event Attributes.


HTML Header Tag Supporting Browsers

S. No. Browser Supported(Yes/No)
1 Internet Explorer Yes (From IE 9 Onwards)
2 Firefox Yes
3 Google Chrome Yes
4 Opera Yes
5 Safari Yes

Important point about HTML header Tag

  1. A Header cannot be placed inside HTML footer, address or another header tag.

Tagged , , , , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.