Algorithms and Data Structures · Junior · Question 52 of 75

Which structure is the DOM of a web page?

Explanation

document is the root, every element has one parent and an ordered list of children. That's why DOM traversal (children, parentNode, querySelector) is tree traversal.

Further reading

Problem with a question

Algorithms and Data Structures · Junior · question 52

Test yourself

Take the Algorithms and Data Structures · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz