what is DOM(document Object Model)

stokes1900's picture

They have: 55 posts

Joined: Oct 2010

hiii fireinds
I am learning html, I have learned basic html,dhtml,css,javascript.and now I am able to design web pages but I have a trouble, I have read about DOM in html i.e Document Object Model. I am confuse about it what is that.What is its purpose and How can we use it. can any one tell me about it in detail.

thanx in advdance.

They have: 17 posts

Joined: Aug 2011

Document Object Model

The Document Object Model is a platform- and language-neutral interface that will allow programs and scripts to dynamically access and update the content, structure and style of documents. The document can be further processed and the results of that processing can be incorporated back into the presented page. This is an overview of DOM-related materials here at W3C and around the web.

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Please don't copy and paste content from another source as your own post without citing the source. This is plagaraism. The above paragraph was copied from the W3C's page on the DOM.

Normally we unpublish copied posts, and repeated copied posts will result in a ban.

stokes1900's picture

They have: 55 posts

Joined: Oct 2010

thanks buddy for such a great information. but how can we maintain DOM in our program.i.e html program or javascript.

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

.... and I just unpublished three more copied definitions, one of which was exactly the same as the one posted above. Do not copy and paste from other sites!

They have: 14 posts

Joined: Jul 2012

DOM is an kind of application programming interface for valid HTML and well formed XML documents. It specifies the logical structure of documents and the way a document is utilised and manipulated.

keeratgroup's picture

He has: 13 posts

Joined: Dec 2012

DOM is the API for the html and xml document. It provides the structural representation for document.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.