Table of contents
- 1. Summary
- 1.1. Usage context
- 1.2. Attributes
- 1.3. DOM Interface
- 1.4. Examples
- 1.5. Compatibility
- 1.6. See also
Summary
The HTML Header Element (<header>) represents a group of introductory or navigational aids. It may contain some heading elements but also other elements like a logo, wrapped section's header, a search form, and so on.
Usage note:
- The
<header>element is not sectioning content and therefore doesn't introduce a new section in the outline.
Usage context
| Permitted content | Flow content, but with no <header> or <footer>
descendant |
| Tag omission | None, both the start tag and the end tag are mandatory |
| Permitted parent elements | Any element that accepts flow content. Note that a |
| Normative document | HTML5, section 4.4.8 |
Attributes
This element has no other attributes than the global attributes, common to all elements.
DOM Interface
This element implements the HTMLElement interface.
Examples
<header> A logo perhaps? </header>
Compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 5 | 4.0 (2.0) | 9.0 | 11.10 | 4.1 |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | 2.2 | 4.0 (2.0) | 9.0 | 11.0 | 5.0 (iOS 4.2) |
Mozilla Developer Network