The Document Object Model (DOM) is the data representation of the objects that comprise the structure and content of a document on the web. This guide will introduce the DOM, look at how the DOM represents an HTML document in memory, and how to use APIs to create web content and applications.
What is the DOM?
The Document Object Model (DOM) is a programming interface for web documents. It represents the page so that programs can change the document structure, style, and content. The DOM represents the document as nodes and objects; that way, programming languages can interact with the page.
A web page is a document that can be either displayed in the browser window or as an HTML source. In both cases, it is the same document but the
Document Object Model (DOM) representation allows it to be manipulated. As an object-oriented representation of the web page, it can be modified with a scripting language such as JavaScript.
<html lang='en'>
<head>
<script>
// run this function when the document is loaded
window.onload = () => {
// create a couple of elements in an otherwise empty HTML page
const heading = document.createElement('h1');
const headingText = document.createTextNode('Big Head!');
heading.appendChild(headingText);
document.body.appendChild(heading);
};
</script>
</head>
<body></body>
</html>
The Document Object Model(DOM) is a programming API for HTML and XML documents.The DOM provides a representation of the document as a structured group of nodes and objects that have properties and methods.
The DOM is a W3C (World Wide Web Consortium) standard. 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.
Liked By
Write Answer
DOM
Join MindStick Community
You have need login or register for voting of answers or question.
Ravi Misra
12-Jan-2023DOM - Stands for Document Object Model
Introduction to the DOM
The Document Object Model (DOM) is the data representation of the objects that comprise the structure and content of a document on the web. This guide will introduce the DOM, look at how the DOM represents an HTML document in memory, and how to use APIs to create web content and applications.
What is the DOM?
The Document Object Model (DOM) is a programming interface for web documents. It represents the page so that programs can change the document structure, style, and content. The DOM represents the document as nodes and objects; that way, programming languages can interact with the page.
A web page is a document that can be either displayed in the browser window or as an HTML source. In both cases, it is the same document but the Document Object Model (DOM) representation allows it to be manipulated. As an object-oriented representation of the web page, it can be modified with a scripting language such as JavaScript.
Prakash nidhi Verma
06-Jul-2018DOM :
The Document Object Model(DOM) is a programming API for HTML and XML documents.The DOM provides a representation of the document as a structured group of nodes and objects that have properties and methods.
The DOM is a W3C (World Wide Web Consortium) standard. 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.