On this page
<body>
Prev: `<head>` | Up: landmarks | Next: `<header>`
Rel: landmarks, Document & Landmarks Guide
Ref: MDN Web Docs — <body>
Tags: #public #web #html #elements #landmarks #tier/core
Summary
Contains all rendered page content.
- Implicit ARIA Role:
generic - DOM Interface:
HTMLBodyElement - Key Attributes:
—
Notes & Best Practices
- Exactly one
<body>per document: Include a skip link (<a href="#main">Skip to content</a>) at the top for keyboard users.
Example
<body>
<a href="#main">Skip to main content</a>
<main id="main"><h1>Welcome</h1></main>
</body>
Linked from
Related notes
- tuts/html/elements/landmarks/head Linked here; links to this page; shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/header 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/html shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/main shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/nav shared tags: #elements, #html, #landmarks, #tier, #web