Which of the following statement is false with respect to DOM?
2022
Which of the following statement is false with respect to DOM?
- A.
DOM is a way to represent the webpage in a structured hierarchical way DOM
- B.
With DOM we can easily access and manipulate tags, IDs, classes or elements of HTML DOM
- C.
Using DOM, the CSS gets access to the HTML and the JavaScript of the web page DOM
- D.
Window object is always at the top of the DOM hierarchy DOM hierarchy
Attempted by 279 students.
Show answer & explanation
Correct answer: C
DOM is an interface that represents an HTML document as a tree structure. It allows JavaScript to access and manipulate HTML elements dynamically. CSS does not access JavaScript using DOM; instead, CSS only styles HTML elements. Therefore, statement (c) is false.
A video solution is available for this question — log in and enroll to watch it.