CKTIS / HTML
main — the document’s dominant content
The `main` element identifies a document’s dominant content. A document may contain at most one `main` without the `hidden` attribute.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
<main>…</main>main represents the document’s dominant content, distinct from surrounding page elements such as a header, navigation, or footer.
It accepts flow content, requires both tags, and supports global attributes. A document must not contain more than one main without the hidden attribute; CSS hiding alone does not satisfy this rule.
Permitted ancestors are only html, body, div, form without an accessible name, and autonomous custom elements. This excludes nesting main inside main, article, section, or nav. In the example, header and footer remain outside the dominant content.
Examples
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Reading list</title>
</head>
<body>
<header>Study notebook</header>
<main>
<h1>Reading list</h1>
<p>Read one chapter today.</p>
</main>
<footer>End of page</footer>
</body>
</html>Result
Study notebook Reading list Read one chapter today. End of page
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.