header

FilterElements

<header> ... </header>

HTML5 only. 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.

Start/End Tags

Required/Required

Specifications

  • HTML5
<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>

Rendered Example

header is a semantic section element. Its rendering is dependent on style rules.