11 Dom
-
STEP 1: What is the DOM?
"The W3C Document Object Model (DOM) is a platform and language neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document."
The W3C DOM provides a standard set of objects for representing HTML and XML documents, and a standard interface for accessing and manipulating them.
The DOM is separated into different parts (Core, XML, and HTML) and different levels (DOM Level 1/2/3):
STEP 2: HTML DOM
The HTML DOM is the Document Object Model for HTML.
The HTML DOM defines a standard set of objects for HTML, and a standard way to access and manipulate HTML documents.
The HTML DOM views HTML documents as a tree structure of elements. All elements, along with their text and attributes, can be accessed and manipulated through the DOM tree.
STEP 3: DHTML DOM
The Document Object Model gives us access to every element in a document.
STEP 4: XML DOM
The XML Document Object Model (XML DOM) defines a standard way for accessing and manipulating XML documents.
The DOM presents an XML document as a tree-structure (a node tree), with the elements, attributes, and text defined as nodes.
(1) DOM Nodes
(2) DOM Node Tree
(3) DOM Node List
(4) DOM Parsing
(5) DOM Traverse Nodes
(6) DOM Mozilla vs IE