2R - DOM Specification

Defining DOM

DOM or the Document Object Model is an API (an Application Programming Interface that creates a group of rules and features inside of a software program) that connects with HTML documents. Document Object Models are used to connect a page to scripts and programming languages by representing the layout of a document. In the DOM the document is represented by a tree where the branches of the tree are nodes which are objects.

DOM Specifications

The Document Object model is made out of objects constructed similarly to a tree and has individual parts which are called nodes. The DOM uses these nodes as objects which are functional and have an identity. In the DOM the objects and interfaces are used to alter and represent a document and also allows you to identify the relationships between the objects and interfaces.

DOM Implemations in Browsers

In browsers the DOM is used for allowing code from the browser to connect and/or access the nodes in the HTML document. The nodes in a document are any element, comment or text-string and can be moved,created or altered.

Summary

The Document Object Model is very important to a website as it allows a pages content,style and structure to change. The DOM is a great way to connect a page to programming languages and to scripts by defining the document structure.