+ 3
What is DOM?
What is DOM? Why is it used?
3 Réponses
+ 9
I think the DOM can be visualised as a tree structure.
+ 5
Document Object Model.
You write down a HTML document as just text, but if we want to interact with the document in javascript, to change some colors or make text fly across the screen, we will need a better representation than just text.
The DOM is that. It allows us to `element.style.backround = "red";`