W3Schools.com

HTML5 <header> Tag

Example

Introduction to my homepage:

<header>
<h1>Welcome to my homepage</h1>
<p>My name is Donald Duck</p>
</header>

<p>The rest of my home page...</p>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The <header> tag is supported in all major browsers.


Definition and Usage

The <header> tag specifies an introduction, or a group of navigation elements for a document.

The <headers> element can contain headings, subheadings, version information, navigational controls, etc.

Note: A <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 also supports the Global Attributes in HTML5.


Event Attributes

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


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE