What is the relevance of the Document Object Model?

Asked By 0 points N/A Posted on -
qa-featured

What is Document Object Model? What is it used for? What is a Dom Tree? How is Dom different from HTML? How can you manipulate the DOM using HTML? How is JavaScript different from DOM? What is an Object in DOM? What is a property and a method in the context of DOM?

SHARE
Answered By 590495 points N/A #133964

What is the relevance of the Document Object Model?

qa-featured

DOM or Document Object Model is a programming interface specification being built up by W3C or the World Wide Web Consortium. It allows a program to build and modify XML documents and HTML pages as complete program objects. At the moment, XML or Extensible Markup Language and HTML or Hypertext Markup Language are the only methods of expressing a document in terms of data structure.

As program objects, the data and contents of these documents will be hidden inside the object which helps in guaranteeing the control over who can manipulate the document. DOM provides 2 levels of interface implementation: DOM Core and DOM HTML. DOM Core is the base for the next level and supports XML.

DOM HTML expands the model to HTML documents.

Related Questions