DEV Community

Cover image for What is the DOM?
Sahan Akalanka
Sahan Akalanka

Posted on • Updated on

What is the DOM?

The Document Object Model (DOM) is a programming interface for HTML and XML documents.

It represents the page in a tree structure so that program can read, access, and change the document structure, style, and content.

The DOM is an object oriented representation of the web page, which can be modified with a scripting language such as javascript.

Every web browser uses some document object model to make web pages accessible via javascript.

Alt Text

image references : w3schools

Discussion (0)