• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » What is Document Object Model (DOM)

By Abhishek Ghosh May 30, 2023 8:25 am Updated on May 30, 2023

What is Document Object Model (DOM)

Advertisement

The Document Object Model (DOM) is a W3C standardized programming interface that allows scripts to examine and modify the contents of the web browser. By the DOM, the composition of an HTML or XML document is represented as a set of objects – which can represent a window, a sentence or a style, for example – linked in a tree structure. Using the DOM, a script can modify the document present in the browser by adding or removing nodes from the tree.

  • Model: A model is used to represent something. The DOM represents the document that is in the browser.
  • Object: In programming, an object is a container that has properties and methods – which are variables and actions about what it represents. DOM objects can represent a window, a document, a sentence or a style.
  • Document: The DOM is a document, such as a web page displayed in a browser. A web page starts with a tag followed by the tag in which the rest of the document is located. The DOM represents the document displayed by a tree structure, with nodes.

 

Implementation and Technical Aspects of DOM

 

Before standardization by the W3C, each web browser had its own Document Object Model. If the basic language for manipulating web documents was quickly standardized around JavaScript, it was not the same for the precise series of functions to be used and the way to navigate the document.

The W3C specification stipulates the objects, methods and properties that a web browser must make available. The main object categories of a DOM tree are document, elements, and attributes.

Advertisement

---

What is Document Object Model DOM


Illustration: Naveen Ankireddy
URL: https://medium.com/@naveenkumarreddyankireddy/basic-explanation-on-dom-73ed11ea974d

Each browser implements the DOM in its programming language. The DOM specification is aligned with JavaScript, which is recognized by all web browsers. Any part of a web page can be modified programmatically, and the program will work on any web browser that complies with the DOM standard. Technically the DOM allows you to read and edit any document using tags, with any programming language that offers a DOM programming interface.

DOM is used to represent the structure of a document and its elements in the form of a tree. It is therefore preferable to go through and memorize the entire document before you can perform the desired treatments. For this reason, programs using DOM often have a large memory footprint being processed. Conversely, from a given DOM tree, it is possible to generate documents in the desired markup language, which can in turn be manipulated by the DOM interface.

DOM is used to easily edit XML documents or access the content of web pages. In cases that do not require manipulating XML documents, but just reading them, the SAX method can also be chosen because it processes the elements sequentially without loading the document into memory. It is required when the size of the document exceeds the memory capacity.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to What is Document Object Model (DOM)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • PHP Snippet to Hide AdSense Unit on WordPress 404 Page

    Here is Easy PHP Snippet to Hide AdSense Unit on WordPress 404 Page to Avoid Policy Violation and Decrease False Impression, False Low CTR.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy