How is everything treated in HTML DOM?
A. Node
B. Attributes
C. Elements
D. All of the mentioned
Answer: Option A
Solution(By Examveda Team)
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.
Join The Discussion