<main>
The <main> HTML element represents the dominant content of the <body> of a document. The main content area consists of content that is directly related to or expands upon the central topic of a document, or the central functionality of an application.
Browser support
| Feature | Desktop | Mobile | ||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Safari | Chrome Android | Safari iOS | |
| 26 | 12 | 21 | 7 | 26 | 7 | |
1+Supported (version) Not supported ※Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Syntax
HTML
<body>
<header>Header</header>
<main>
<h1>Main Content</h1>
<p>Page-specific content goes here.</p>
</main>
<footer>Footer</footer>
</body> Live demo
Skip navigation and. combination
Main to id skipnavigation. linkdestination to settings.
PreviewFullscreen
Use cases
-
Using <main>
The <main> HTML element represents the dominant content of the <body> of a document.
Cautions
- May not be supported in older browsers.
Accessibility
- Verify how this element is announced by screen readers.