Advertisement

HTML <header> tag

Examples

On the home page of the presentation:

<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

Browser Support

IE Firefox Chrome Safari Opera

Internet Explorer 9+, Firefox, Opera, Chrome and Safari support <header> tag.

Note: 8 and earlier versions of Internet Explorer do not support the <header> tag.

Definition and Usage

<Header> tag defines the header of the document (introductory information).

HTML 4.01 and HTML 5 differences between

<Header> tag is new in HTML 5 tag.

Global Properties

<header> tag supports HTML in the global properties .

Event Properties

<header> tag also supports the HTML event attributes .