Skip to main content

HTML Guide

The element “header” must not appear as a descendant of the “header” element.

A <header> element can’t include other <header> elements inside.

The header element represents a group of introductory or navigational aids, as in this example:

<body>
  <header>
    <h1>Welcome to our Shop</h1>
    <nav>
      <ul>
        <li><a href="/toys">Toys</a>
        <li><a href="/books">Books</a>
        <li><a href="/shoes">Shoes</a>
      </ul>
    </nav>
 </header>

 <p>Main content...</p>
</body>

Learn more:

Related W3C validator issues