1. What is DOM?
2. What is “D” “O” “M” for?
3. Is DOM same as HTML?
4. What is the relation between DOM and HTML?
Today, we will know 4 queries solution. These are above.
Lets learn...
DOM contains Document Object Model.
D for Document.
It Means: HTML doc file
O for Object.
It Means: HTML element(body,head,p,h1,etc) / javascript object)
We can say, HTML element(p,h1,etc) = javascript object.
M for Model.
It Means: HTML doc’s “element/ javascript object” Model
DOM works as a “javascript object model”. Here, “javascript object” is known as HTML element(p,h1,etc). Actually, DOM is an HTML element(p,h1) model.
Best of luck.
Top comments (0)