🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Web Development Beginner

What is DOM (Document Object Model)?

A programming interface for HTML documents that represents the page structure as a tree of objects that can be manipulated with JavaScript.

The DOM represents HTML as a tree of nodes. JavaScript can read, modify, add, and remove elements: document.getElementById("id"), element.innerHTML, document.createElement("div"), parent.appendChild(child). Events (click, submit, keypress) trigger JavaScript functions.

Direct DOM manipulation is slow for complex updates. Modern frameworks (React, Vue) use a Virtual DOM — an in-memory representation that calculates minimal changes before updating the real DOM. Understanding the DOM is fundamental to frontend development.

Related Terms

gRPC
A high-performance RPC framework using Protocol Buffers and HTTP/2 for efficient service-to-service communication.
Web Font Optimization
Techniques for loading custom fonts efficiently to minimize their impact on page load performance and visual stability.
Server-Sent Events
A server push technology that enables a server to send real-time updates to a browser over a single HTTP connection.
GraphQL
A query language for APIs that lets clients request exactly the data they need, reducing over-fetching and under-fetching.
SEO (Search Engine Optimization)
The practice of optimizing websites to rank higher in search engine results, increasing organic traffic.
TypeScript
A typed superset of JavaScript that adds static type checking, interfaces, and advanced IDE support to JavaScript development.
View All Web Development Terms →