htmldocument
HTMLDocument is a concrete interface in the Document Object Model (DOM) that represents an HTML page. It extends the generic Document interface by adding properties and collections specific to HTML documents. Typical features include access to the document’s root elements, such as document.documentElement, and convenient properties for common sections like document.head and document.body. The interface also exposes HTML-specific collections that map to markup elements, including forms, links, images, anchors, and scripts (for example, document.forms, document.images, document.links, document.anchors).
HTMLDocument is defined in the DOM Level 2 HTML specification and is provided by web browser engines
With HTML5 and the HTML Living Standard, the HTMLDocument interface continues to exist as a browser-specific
See also: the Document interface, the HTML Living Standard, and the DOM.