On this page
<header>
Prev: `<body>` | Up: landmarks | Next: `<nav>`
Rel: landmarks, Document & Landmarks Guide
Ref: MDN Web Docs — <header>
Tags: #public #web #html #elements #landmarks #tier/core
Summary
Introductory content or navigation header for the page or a section.
- Implicit ARIA Role:
banner (when top-level) - DOM Interface:
HTMLElement - Key Attributes:
—
Notes & Best Practices
- Introductory banner landmark when a direct child of
<body>; avoid nesting<header>inside another<header>or<footer>.
Example
<header>
<a href="/">Brand</a>
<nav aria-label="Primary"><a href="/docs">Docs</a></nav>
</header>
Linked from
Related notes
- tuts/html/elements/landmarks/body Linked here; links to this page; shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/nav Linked here; links to this page; shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks Linked here; links to this page; shared tags: #elements, #html, #landmarks, #web
- tuts/html/elements/document_and_landmarks Linked here; shared tags: #elements, #html, #web
- tuts/html/elements/landmarks/article shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/aside shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/footer shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/head shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/html shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/main shared tags: #elements, #html, #landmarks, #tier, #web