Document Object Model (DOM) is an Application Programming Interface for HTML, XHTML, and XML documents. It is a cross-platform Language-independent interface for representing objects in the said Markup Languages. The content of the document is represented so that the desired changes can be made programmatically.