Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. How is everything treated in HTML DOM?

  2. A.

     Node

    B.

     Attributes

    C.

     Elements

    D.

     All of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    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.


Be The First To Comment