What is DOM?
You might hear about the word DOM Manipulation if you are a beginner web developer. When you see some videos on YouTube or search on Google, you end up getting the full form which is the Document Object Model ??. And you might think that's all the story of DOM might be. But that's not the case my dear friend. Let's see What is DOM, Who created it, and Where it is useful. After reading this article you'll get Brid's eye-view of DOM.
What is Document Object Model
DOM stands for Document Object Model. The DOM defines standards for accessing documents. It is standardized by W3C (World Wide Consortium). The DOM is a Platform and Programming language independent interface. It allows programs to dynamically Access, Update, and Style the content and Structure the Document.
World Wide Consortium standardizes DOM in 3 parts:
Between these three, HTML DOM is widely known and used.
Basically, DOM represents the structure of a document as a tree-like model, where each node in a tree represents a part of the document. (e.g. an element, attribute, or text)
How DOM Works
When a web page is loaded in a browser, the browser creates a DOM representation of the page, which can then be accessed and modified using programming languages like Javascript. This enables developers to interact with the web page, update its content, change its styles, and respond to user actions dynamically.
The DOM is a critical part of front-end web development, as it enables the creation of interactive and dynamic web pages. HTML DOM defines:
With DOM, Javascript gets all the power it needs to create dynamic HTML and CSS. With the help of DOM:
History of DOM
In the initial days of the Internet and Browser, there was no way of accessing Browser Documents. By browser documents I mean the Structure and Metadata of Web Pages like how many elements are there on the web page and what is their structure etc. As the internet evolved, soon developers realized that they would need Standards and Specifications to access the Browser Document.
The initial concept of DOM emerged in the mid-1990s. Its Standards and Specifications have undergone several revisions and updates over the years to keep up with the evolving web technologies. In September 2021 the most recent version of the DOM Specification was launched.
领英推荐
Conclusion
The article provides an overview of DOM (Document Object Model), its importance in web development, and its history. Here's a summarized version:
What is DOM?
How DOM Works:
History of DOM:
In essence, DOM is a crucial aspect of front-end web development that enables the creation of interactive and dynamic web pages by providing a structured way to interact with and manipulate web page content and structure.
So, guys, That’s all you need to know about DOM. Please let me know if I miss something. I’ll be happy to learn from you. Until then Keep Loving, Keep Coding. I’ll surely catch you up in the next article. Jai Hind, Vande Mataram.
Sounds too complicated? Read the Simplified Versions
Read more about React & JavaScript
Follow me for more such content