This is an important message requiring you to make a choice if you're based in the EU.

HTML <header> Tag

The <header> tag defines a header of a page or a section. It usually contains a logo, search, navigational links, etc.

The <header> tag is a new element in HTML5. In an HTML document it is allowed to use several <header> tags, which can be placed in any part of it.

It is not permitted to place the <header> tag inside the <footer> and <address> elements, and in another <head> tag too.


The <head> tag comes in pairs; the content is written between the opening (<head>) and closing (</head>) tags.


<!DOCTYPE html>
    <title>Title of the document</title>
      li {
        display: inline-block; 
        margin-right: 10px;
        color: #778899;
        <ul style="padding:0;">
          <li>About us</li>
      <h1>Welcome to our page</h1>
        <h2>The section title</h2>
        <p>The text paragraph.</p>



The <header> tag supports Global Attributes and the Event Attributes.

Browser support

6+ 4+ 5+ 11.1+

Do you find this helpful?

Related articles