HTML <header> Tag

Description

The <header> HTML element defines the "header" of the site or section of the web page. Inside the "heading" of the site is usually located the logo, site name, search form, navigation links, etc.

Properties

Permitted Parents
Any element that accepts flow content. Note that a <header> element must not be a descendant of an <address>, <footer> or another <header> element.
Content
Block, Inline and text elements, but no <header> or <footer> descendants.
Start/End Tags
Start tag: required, End tag: required

Example

<!DOCTYPE html>
<html>
<head>
<title>Untitled 1</title>
</head>
<body>
<header>
<h1>Header of Page</h1>
</header>
<article>
<p>Description and information of page goes here.</p>
</article>
<footer>
Footer of Page - Copyright
</footer>
</body>
</html>

Attributes

None

Global Attributes

The <header> tag also supports the Global Attributes in HTML5

Event Attributes

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

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
9Yes5411.14.1
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
YesYes411.14.2Yes