Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What is dom or dom structure?


Asked by Desmond Cisneros on Dec 02, 2021 FAQ



The Document Object Model (DOM) is a programming interface for HTML and XML (Extensible markup language) documents. It defines the logical structure of documents and the way a document is accessed and manipulated. Note: It is called as a Logical structure because DOM doesn't specify any relationship between objects.
Subsequently,
DOM stands for Document Object Model. It is the W3C(World Wide Web Consortium) Standard. It define standard for accessing and manipulating HTML and XML document and The elements of DOM is head,title,body tag etc.
Indeed, The DOM is the Document Object Model, which deals with the document, the HTML elements themselves, e.g. document and all traversal you would do in it, events, etc. The BOM is the Browser Object Model, which deals with browser components aside from the document, like history, location, navigator and screen (as well as some others that vary by browser).
Also,
The DOM is a W3C (World Wide Web Consortium) standard. The DOM defines a standard for accessing documents: "The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document.".
One may also ask,
The DOM is an acronym for Document Object Model. It is a programming interface for HTML and XML documents and provides a structured representation (node tree) of a document, defining ways it can be accessed and manipulated using scripting languages such as JavaScript.