HTML Tag Reference - HTML tag <header>

The header element marks the header of a section. The header element cannot be a descendent of the address or footer element.

Browser compatibility

<header> Yes 9.0 Yes Yes Yes

What's new in HTML5

The <header> tag is new in HTML5.

Global Attributes

The <header> tag supports the Global Attributes in HTML.

Event Attributes

The <header> tag supports the Event Attributes in HTML.

Default CSS Settings

header { 
    display: block;


A demo showing how to use <header> tag.

</body> <!-- ww w .  j  a va2 s.c o  m-->

Click to view the demo