Cohort 6
The DOM is Document Object Model , it is a programming interface for HTML documents. It represents the page so that programs can change the document structure, style, and content. it’s basically used to manipulate the web page’s structure and style.
The DOM tree can be imagined as a collection of “nodes” related to each other through parent-child and sibling-sibling relationships.
DOM tree traversal may be accomplished through the use of six basic properties. All properties, except childNodes, contain a reference to another node object