document Variable
The document global variable has type Document.
It has the following useful attribute:
document.documentElement - the root of the document
hierarchy: the <html> tag and its contents.
The document variable is usually a HTMLDocument.
Then it has the following additional attribute:
document.body - the body of the document: the
<body> tag and its contents.
Any Document object has the following useful methods:
id attribute is id.
The entire document hierarchy is searched.