HTML and CSS Reference
In-Depth Information
Name
main
Synopsis
<main> . . . </main>
WHATWG and HTML5.1 only . Represents the main content area of the body of a docu-
ment. There may only be one main element in a document, and it may not be the child of an
article , aside , footer , header , or nav elements.
Usage
Categories:
Flow content, palpable content
Permitted contexts:
Where flow content is expected (may not be contained in article , aside , footer , head-
er , or nav elements)
Permitted content:
Flow content
Start/end tags:
Required/Required
Attributes
HTML5 Global Attributes
Example
<body>
<header>
<h1>White Rabbits Fan Site</h1>
Search WWH ::




Custom Search