The <body>
HTML element represents the content of an HTML document. There can be only one <body>
element in a document.
Content categories | Sectioning root. |
---|---|
Permitted content | Flow content. |
Tag omission | The start tag may be omitted if the first thing inside it is not a space character, comment, <script> element or <style> element. The end tag may be omitted if the <body> element has contents or has a start tag, and is not immediately followed by a comment. |
Permitted parents | It must be the second element of an <html> element. |
Implicit ARIA role | generic |
Permitted ARIA roles | No role permitted |
DOM interface | HTMLBodyElement
|