Document Object Model(DOM)
Published in
2 min readMay 4, 2024
In order to make html page interactive, html document has to be represented in a way so that JavaScript can query and update it. To do this Document Object Model(DOM) is used.
When the browser receives a html page it constructs a DOM to represent it.
What is DOM?
Document object model(DOM) is a tree structure of a model. For example we have a html document: