Vidyalelo
JavaScript · Q72

Caching And Debugging

Programming · JavaScript · question 72

Q72

How is everything treated in HTML DOM?

A.
Node
Answer
B.
Attributes
C.
Elements
D.
All of the mentioned

Answer: Option A

Solution

Answer: Option A
Solution:
In the HTML DOM (Document Object Model), everything is a node:
1. The document itself is a document node.
2. All HTML elements are element nodes.
3. All HTML attributes are attribute nodes.
4. Text inside HTML elements are text nodes.
5. Comments are comment nodes.