From the course: JavaScript: Enhancing the DOM

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

DOM vs. HTML vs. JavaScript

DOM vs. HTML vs. JavaScript

- [Narrator] We just talked about the DOM. Let's make sure you know the meaning and roles of the three following concepts. DOM, HTML, and JavaScript. The thing they have in common is that all three of them are pillars of web development. HTML is like the skeleton of a webpage. It provides the basic structure and content. You can think of it as the starting point of the page. Then, we have the DOM. This is a living representation of the content. Once the HTML is loaded into the browser, it becomes a living document, the DOM. Right after opening the page, the DOM holds what is in the HTML document. But that can be altered because the DOM is dynamic. How? Well, that's where JavaScript comes in. JavaScript can interact with the HTML elements of the DOM. It can add, remove, or modify elements and their styles. Essentially, JavaScript uses the DOM to make the webpage interactive and dynamic. Understanding these differences is important for professional web development. You might wonder how…

Contents