What is the Document object model?
The Document Object Model (DOM) is a platform- and language-neutral interface that will allow programs and scripts to dynamically access and update the content, structure and style of web pages. (Ref)
Many browsers have a developer mode which allows you to display the document object model in an outline view. The example file taken from the HTML5 module looks like this in the Firefox 10 page inspector (Menu 'tools' / 'web developer' / inspect).
The top pane shows the web console where JavaScript code may be executed interactively. The example given is document.getElementById("beverages") (see below).
The middle pane shows the rendered document. You may select a part of it with the mouse. Then the corresponding HTML element is highlighted in the middle pane as well as in the third pane. The third page shows the outline of the DOM.
More on the Firefox 10 page inspector
The same file in the Microsoft Internet Explorer 9 web development tools (F12). The white text between the HTML elements is represented as text nodes.



HTML5

