Monday, 9 July 2012

Previous Interview Question Next Interview Question

What is DOM in HTML

The Document Object Model (DOM) is an API for HTML and XML documents. It provides a structural representation of the document, enabling you to modify its content and visual presentation by using a scripting language such as JavaScript.

DOM - API for HTML. It represents a web page as a tree. In other words, DOM shows how to access HTML page

The HTML DOM defines a standard way for accessing and manipulating HTML documents.

"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 DOM defines the objects and properties of all document elements, and the methods (interface) to access them.

Previous Interview Question Next Interview Question


  1. Halo,

    Amaze! I have been looking bing for hours because of this and i also in the end think it is in this article! Maybe I recommend you something helps me all the time?

    i want to learn Angular JS but i have basic knowledge of javascript. Can i start learn Angular JS or first i have learn more javascript. If i start then where should i start choose any insititute or youtube.

    Awesome! Thanks for putting this all in one place. Very useful!

    Many Thanks,