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."
The W3C DOM standard is separated into 3 different parts:Core DOM - standard model for all document typesXML DOM - standard model for XML documentsHTML DOM - standard model for HTML documentsThe HTML DOM is a standard object model and programming interface for HTML. It defines:The HTML elements as objects.The properties of all HTML elements. The methods to access all HTML elements. The events for all HTML elements.
+4
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 6, 2018, 6:54 AM EDT
+2
Hi,
DOM is document object Model. It defines structure of document. Lets take example we have one table in our page than How it will work.
Lets say I want acess values from child element then I need to traverse vai parent then child. So first I need to find table name or Id then table row and then value from td.
DOM is Document Object Model. it's programming interface for markup language and XML documents. It represents the page in order that programs will amendment the document structure, style, and content. The DOM represents the document as nodes and objects. That way, programming languages will connect with the page.
Its an architecture method which defines the parent and the child node after the whole documents loaded .
Example:
<div>
<ul>
<li>Hi<li>
<li>Hi<li>
ul>
div>
when the above html will load, dom will give the following scenario
is the parent tag of
is the parent tag of
and child tag of
is child tag of
+2
Sanwar RanwaRank #23 · 44.7K reputationPosted Aug 6, 2018, 3:08 AM EDT
+1
Hello
Dom-The Document Object Model (DOM) is a programming API for HTML and XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated. In the DOM specification, the term "document" is used in the broad sense - increasingly, XML is being used as a way of representing many different kinds of information that may be stored in diverse systems, and much of this would traditionally be seen as data rather than as documents. Nevertheless, XML presents this data as documents, and the DOM may be used to manage this data.
With the Document Object Model, programmers can create and build documents, navigate their structure, and add, modify, or delete elements and content. Anything found in an HTML or XML document can be accessed, changed, deleted, or added using the Document Object Model, with a few exceptions - in particular, the DOM interfaces for the internal subset and external subset have not yet been specified.
Read once this link you can get clarity about Dom and importance
https://www.w3.org/TR/WD-DOM/introduction.html
+1
Amit KumarRank #459 · 5.4K reputationPosted Oct 17, 2019, 10:44 AM EDT
+1
Hi,
Use will get easily answer of your question after reading these lines.
The DOM (Document Object Model) is an interface that represents how your HTML and XML documents are read by the browser. It allows a language (JavaScript) to manipulate, structure, and style your website. After the browser reads your HTML document, it creates a representational tree called the Document Object Model and defines how that tree can be accessed.
Sanwar RanwaRank #23 · 44.7K reputationPosted Aug 6, 2018, 3:30 AM EDT
0
We can create and build documents, navigate their structure, and add, modify, or delete elements and content. Anything found in an HTML or XML document can be accessed, changed, deleted, or added using the Document Object Model
Shraddha Patel176 reputationPosted Sep 15, 2019, 7:28 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 6, 2018, 6:54 AM EDT
Posted Apr 1, 2019, 9:02 PM EDT
Bidyasagar MishraRank #766 · 3K reputationPosted Jul 7, 2019, 7:47 PM EDT
is the parent tag of- and child tag of
- is child tag of
Sanwar RanwaRank #23 · 44.7K reputationPosted Aug 6, 2018, 3:08 AM EDT
Sivakumar KonetiRank #1,557 · 1K reputationPosted Jul 7, 2019, 9:19 PM EDT
Amit KumarRank #459 · 5.4K reputationPosted Oct 17, 2019, 10:44 AM EDT
Hemalatha Sunnapu195 reputationPosted Aug 6, 2018, 3:28 AM EDT
Sanwar RanwaRank #23 · 44.7K reputationPosted Aug 6, 2018, 3:30 AM EDT
Hemalatha Sunnapu195 reputationPosted Aug 6, 2018, 3:35 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts