On this page
<main>
Prev: `<nav>` | Up: landmarks | Next: `<article>`
Rel: landmarks, Document & Landmarks Guide
Ref: MDN Web Docs — <main>
Tags: #public #web #html #elements #landmarks #tier/core
Summary
Primary unique content of the document.
- Implicit ARIA Role:
main - DOM Interface:
HTMLElement - Key Attributes:
id
Notes & Best Practices
- One visible
<main>per page: Holds the primary unique content (excluding repeated navbars/sidebars/footers).
Example
<main id="main">
<h1>Dashboard</h1>
<p>Primary page content goes here.</p>
</main>
Linked from
Related notes
- tuts/html/elements/landmarks/article 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/aside shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/body 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/header shared tags: #elements, #html, #landmarks, #tier, #web
- tuts/html/elements/landmarks/html shared tags: #elements, #html, #landmarks, #tier, #web