top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is meant by DOM (Document Object Model)? Please explain in detail?

+3 votes
430 views
What is meant by DOM (Document Object Model)? Please explain in detail?
posted Jan 29, 2014 by Atul Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+3 votes

The Document Object Model (DOM) is an application programming interface (API) for valid HTML and well-formed XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated. In the DOM specification, the term "document" is used in the broad sense - increasingly, XML is being used as a way of representing many different kinds of information that may be stored in diverse systems, and much of this would traditionally be seen as data rather than as documents. Nevertheless, XML presents this data as documents, and the DOM may be used to manage this data.

The DOM is a programming API for documents. It is based on an object structure that closely resembles the structure of the documents it models. For instance, consider this table, taken from an XHTML document:

answer Feb 3, 2014 by Asmita Agrawal
...