by Mozilla Developer Network. The Document Object Model ( DOM ) is a programming interface for HTML and XML documents ( web pages ). 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.