HTML - Body element

> (World Wide) Web - (W3|WWW) > HyperText markup Language (HTML)

1 - About

The body element represents the body of a document (as opposed to the document’s metadata).


3 - DOM Accessor

The document property document.body returns the body element. Can be set, to replace the body element.

The body element of a document is the first child of the html element that is:

  • either a body element
  • or a frameset element.

If there is no such element, it is null.