The document's structural framework
body
The body element comprises all of the elements that control the layout and structure of a document, plus all of their subordinates.
At the highest level of the hierarchy this includes other layout elements like header, footer, nav and main.
The body element may also include structure elements such as article, section and aside.
There are few restrictions — other than the elements that must appear only in the head — on what can appear as direct descendants of the body element.
Example
Ancestor
- html
- The html element is the outermost envelope for the composition. It is often called the root element because HTML uses a hierarchical structure.
Layout
- header
- The portion of the document that contains contextual information about the document and its relationship to the website as a whole.
- main
- The main element is the container that holds the true body of the document.
- nav
- The portion of the document that contains a fixed list of hyperlinks to other documents on the same website.
- footer
- The portion of the document that contains references to additional material that can be found on the same website.