Friday, 21 October 2011

Document Object Model (DOM)

Document Object Model, what is this? Well lets brake it down ....

Document: In web development, when a developer refers to a document they are talking about the/a webpage.

Object: The object is like the building blocks, it makes up the basic elements of the webpage.

Model: A model is very similar to a sitemap, except instead of being a sitemap for files, this sitemap is for html code.

So an overall view... The Document is the Webpage, the Object is the pieces in the middle and the Model is the agreed plan. a DOM is a set agreed plans on how a webpage will be designed.

Programs such as CSS uses the DOM system to present HTML whereas, programs such as JavaScript use the DOM system to interact with HTML.

No comments:

Post a Comment