Document Object Model (DOM)
When the HTML page is loaded and rendered visually on the screen. The browser builds the Document Object Model of that page, which is its logical structure.
A body is an element of the DOM. We can change its value by just accessing the document object like document.body
DOM diagram is:-