What is DOM? Part 1

JavaScript Tutorial
DOM & Events
What is DOM?
13
1/3
               

The DOM



When you open any webpage in a browser, the HTML of the page is loaded and rendered visually on the screen.
To accomplish that, the browser builds the Document Object Model of that page, which is an object oriented model of its logical structure.
The DOM of an HTML document can be represented as a nested set of boxes:
JavaScript can be used to manipulate the DOM of a page dynamically to add, delete and modify elements.

Comments