The Document Object Model (DOM) is a platform- and
language-independent standard object model for representing HTML or
XML and related formats. The Document Object Model (DOM) is a
programming interface for HTML and XML documents. It provides a
structured representation of the document and it defines a way that
the structure can be accessed from programs so that they can change
the document structure, style and content.