This content originally appeared on DEV Community and was authored by Riyad Mahmud
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.
This content originally appeared on DEV Community and was authored by Riyad Mahmud
Riyad Mahmud | Sciencx (2021-11-07T16:30:03+00:00) DOM (Document Object Model) is really easy to understand!!!. Retrieved from https://www.scien.cx/2021/11/07/dom-document-object-model-is-really-easy-to-understand/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.