HTML DOM Document documentElement
HTML DOM Document documentElement Property
The documentElement property is used to return the document element. Its returned object is html element and is a read-only property. It is similar to a document.body but the main difference is that document.body will return the body element and document.documentElement will return html element.
Syntax:-
Its syntax is:- document.documentElement
Return:-
Its return is:- document Element Object