Quiz: The Document Object Model
Test your knowledge of the DOM in JavaScript.
1
How does the DOM treat HTML tags and their contents?
A)
It ignores HTML tags and focuses only on text.
B)
It treats HTML tags as text nodes.
C)
It represents HTML tags as element nodes and text inside tags as text nodes.
D)
It only focuses on element nodes and ignores text nodes.
Question 1 of 60 attempted
Get hands-on with 1400+ tech skills courses.