Easy Tutorial
❮ Att Th Headers Tag Dir ❯

HTML <header> Tag

Example

Header of an <article>:

<article>
    <header>
        <h1>Internet Explorer 9</h1>
        <p><time pubdate datetime="2011-03-15"></time></p>
    </header>
    <p>Windows Internet Explorer 9 (abbreviated as IE9) was released at 21:00 on March 14, 2011.</p>
</article>

Browser Support

IE 9, Firefox, Opera, Chrome, and Safari support the <header> tag.

Note: IE 8 or earlier versions of IE do not support the <header> tag.


Definition and Usage

The <header> tag specifies a header for a document or a section.

The <header> element should be used as a container for introductory content or navigation links.

You can have several <header> elements in one document.

Note: The <header> tag cannot be placed within a <footer>, <address>, or another <header> element.


Differences Between HTML 4.01 and HTML5

The <header> tag is new in HTML5.


Global Attributes

The <header> tag supports HTML's global attributes.


Event Attributes

The <header> tag supports HTML's event attributes.

❮ Att Th Headers Tag Dir ❯