+ 3
đ Give the brief description of DOM
2 Answers
+ 2
Think of a tree from roots to all the way up to the branches... Now how can you relate that to a HTML document !
well that's how a browser sees your HTML page once its completely loaded...
The <html> tag is the root of the document... All other elements are the branches of the tree...An element within another element is called a child element (node) while the containing element is called a parent element (node)...In short the
whole HTML document is treated as a collection of objects where objects being the individual HTML elements...
Hope you get the ideaâ