Name

header — HTML5

Synopsis

<header> . . . </header>

Represents information that goes at the beginning of a section, most often the headline, but the header may also include navigation links, advertising, introductions, etc. It may contain any flow content except header or footer elements.

Notes

HTML5 only.

Start/End Tags

Required/Required

Attributes

HTML5 Global Attributes

Examples

<body>
<header>
   <nav><ul><li>About</li><li>Home</li></nav>
   <h1>White Rabbits</h1>
   <p>Welcome to the White Rabbits fan site.</p>
</header>
<h2>Rabbit Sightings</h2>
... markup continues ...
</body>

Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.