What is the Document Object Model?

The W3C defines the DOM as:

A platform- and language-neutral interface that will allow programs and scripts to dynamically access and update the content, structure and style of documents.

It is an API that can be used to navigate HTML and XML documents.