DOM is an acronym for Document Object Model. DOM is a cross-platform and language-independent model that represents HTML documents in a tree structure which makes it easier to manage and maintain each part of the document as each node is seen as an object within the document. By accessing the document with the DOM method, it’s possible to get programmatic access to the tree and from here it’s possible to change the structure, style, or content of a document. Within the DOM there are various types of nodes. The tag always goes on top, and is referred to as a “root node”. The rest of the nodes are referred to as “child nodes”. At the very bottom of this object model are the leaves. These usually contain elements’ attributes, values, and events.