X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <header> Tag


Example

A header for 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 to
  the  public on March 14, 2011 at 21:00 PDT.....</p>
</article>

Try it Yourself »

Definition and Usage

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

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

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

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


Browser Support

The numbers in the table specify the first browser version that fully supports the element.

Element
<header> 6.0 9.0 4.0 5.0 11.1


Differences Between HTML 4.01 and HTML5

The <header> tag is new in HTML5.


Global Attributes

The <header> tag also supports the Global Attributes in HTML.


Event Attributes

The <header> tag also supports the Event Attributes in HTML.



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook