From the course: The DOM in JavaScript, jQuery, AngularJS, and React

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

What is the DOM?

What is the DOM?

- [Instructor] So, what is the DOM? The DOM is an acronym for Document Object Model. It's an application program interface, or API for HTML and XML documents. In the DOM, web documents have a logical structure of html elements which is very much like a tree. To be more precise, it is usually represented as an uprooted tree, because the root is at the top, and branches and leaves are at the bottom. The root is the HTML element. The branches are all other elements, and leaves are usually refer to the text and nodes. Now most elements do contain text or content but not all of them. For example, VHR or the horizontal rule tag, and the line break tag do not contain any content, but most of them do. Now, these diagrams are just models to represent the DOM, so that we can have a better visualization of what it might look like. One thing for certain is that the DOM is not a set of data structures. Data structures are things like arrays, files, records and so forth, that are designed to…

Contents