The Document Object Model (DOM) represents a tree-like heiarchy of nodes in an HTML document and it allows querying and modification of individual parts of the document.