InterviewSolution
Saved Bookmarks
| 1. |
How is everything treated in HTML DOM?(a) Node(b) Attributes(c) Elements(d) ArraysThis question was addressed to me in class test.My question comes from HTML DOM topic in division Caching, Debugging and Animation of JavaScript |
|
Answer» RIGHT choice is (a) NODE The BEST explanation: The HTML DOM model is constructed as a tree of Objects. In the HTML DOM (Document Object Model), everything is a node: The document itself is a document node. All HTML elements are element NODES. All HTML attributes are attribute nodes. TEXT inside HTML elements are text nodes. Comments are comment nodes. |
|