The HTML Document Object Model (DOM) is the browser's view of an HTML page as an object hierarchy, starting with the browser window itself and moving deeper into the page, including all of the elements on the page and their attributes. Below is a simplified version of the HTML DOM.
As shown, the top-level object is
document object is a child of
window and all the objects (i.e, elements or nodes) that appear on the page (e.g, forms, links, images, tables, etc.) are descendants of the
document object. These objects can have children of their own. For example,
form objects generally have several child objects, including textboxes, radio buttons, and select menus.
// This is a single-line comment /* This is a multi-line comment. */