HTML5 <header> Tag

Example

Introduction to my homepage:

<header>
<h1>Welcome to my homepage</h1>
<p>My name is Donald Duck</p>
</header>

<p>The rest of my home page...</p>

Try it yourself »

Definition and Usage

The <header> tag defines an introduction to the document.


Differences Between HTML 4.01 and HTML5

The <header> tag is new in HTML5


Standard Attributes

The <header> tag also supports the Standard Attributes in HTML5.


Event Attributes

The <header> tag also supports the Event Attributes in HTML5.