Learn HTML DOM for Ajax

The HTML DOM defines a standard way for accessing and manipulating HTML documents.The DOM presents an HTML document as a tree-structure.DOM stands for Document Object Model.Before learning HTML DOM we should have a knowledge of Html,CSS and JavaScript.The DOM is a W3C (World Wide Web Consortium) standard.The DOM defines a standard for accessing documents like HTML and XML:”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 DOM is separated into 3 different parts / levels:
Core DOM – standard model for any structured document.
XML DOM – standard model for XML documents.
HTML DOM – standard model for HTML documents.
The XML DOM defines the objects and properties of all XML elements, and the methods (interface) to access them.The HTML DOM is:A standard object model for HTML.A standard programming interface for HTML.Platform- and language-independent.A W3C standard.The HTML DOM defines the objects and properties of all HTML elements, and the methods to access them.In other words: The HTML DOM is a standard for how to get, change, add, or delete HTML elements.In the DOM, everything in an HTML document is a node.The DOM says:The entire document is a document node.Every HTML element is an element node.The text in the HTML elements are text nodes.Every HTML attribute is an attribute node.Comments are comment nodes.A common error in DOM processing is to expect an element node to contain text.However, in the HTML DOM the value of the text node can be accessed by the innerHTML property.The HTML DOM views an HTML document as a node-tree.
All the nodes in the tree have relationships to each other.The HTML DOM views an HTML document as a tree-structure. The tree structure is called a node-tree.The nodes in the node tree have a hierarchical relationship to each other.This was an overview of HTML DOM.

Sorry, comments are closed for this post.