HTML DOM body Property
The HTML DOM Body propertyhelps control the element of a document. It deals with the content within the tag specifically. It lets you update the current content inside the element with new content you choose. However, it doesn't handle the element itself..
Syntax:
- This code retrieves the body property.
document.body
- This format is utilized to define the body property.
document.body = Content
Return Value: Pointing to the Body Object, which stands for a <body> element
Property Value: The document.body property uses a single piece of content. This content can be added to the body element of a document.