The document object model (DOM) is the specification for how objects on a web page are represented.
A DOM defines each object on a web page (images, text, scripts, links, etc.) and also defines what attributes are associated with these objects and how they can be manipulated.