How is everything treated in HTML DOM?
How is everything treated in HTML DOM? Correct Answer Node
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.