The HTML DOM (Document Object Model)
When a site page is stacked, the program makes a Document Object Model of the page.
The HTML DOM show is developed as a tree of Objects:
The HTML DOM Tree of Objects
What You Will Learn
In the following sections of this instructional exercise you will learn:
- How to change the substance of HTML elements
- How to change the style (CSS) of HTML elements
- How to respond to HTML DOM events
- How to include and erase HTML elements
What is the DOM?
The DOM is a W3C (World Wide Web Consortium) standard.
The DOM characterizes a standard for getting to documents:
"The W3C Document Object Model (DOM) is a stage and language-impartial interface that enables projects and contents to powerfully access and refresh the substance, structure, and style of a document."
The W3C DOM standard is isolated into 3 diverse parts:
- Core DOM - standard model for all record types
- XML DOM - standard model for XML documents
- HTML DOM - standard model for HTML documents
What is the HTML DOM?
The HTML DOM is a standard object show and programming interface for HTML. It defines:
- The HTML components as objects
- The properties of all HTML elements
- The methods to get to all HTML elements
- The events for all HTML elements
In other words: The HTML DOM is a standard for how to get, change, include, or erase HTML elements.