Vidyalelo
JavaScript · Q49

Document Object Model And Event Handling

Programming · JavaScript · question 49

Q49

Which of the following property refers to the root element of the document?

A.
documentElement
Answer
B.
elementdocument
C.
rootdocument
D.
none of the mentioned

Answer: Option A

Solution

Answer: Option A
Solution:
The documentElement property of the Document class refers to the root element of the document. This is always an HTML element.