The Document Object Model (DOM) describes how the elements are organized in a document. In an HTML page, DOM refers to the organization of various buttons, input fields, etc. inside the page document. The various buttons, input fields, etc. are called the elements of the document. The DOM is used to access and update the contents of the document. The aspects of the DOM (such as its ‘Elements’) may be addressed and manipulated within the syntax of the programming language in use. The public interface of a DOM is specified in its Application Programming Interface (API).
The DOM is a W3C (World Wide Web consortium) standard for accessing documents such as HTML and XML. As per W3C,
“The W3C Document Object Model (DOM) is a platform ...