10.1. An introduction to the DOM

10.1.1. What is the DOM?

The DOM is defined by the W3C authority as follows:

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.

In fact, long before the involvement of the W3C and its standardization, browsers had already introduced methods and properties that would allow alien technologies to communicate the contents of a document. This was a natural process to extend their functions and capabilities to a wider area of applications. You could imagine ...

Get Practical Web Technologies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.