Quiz: The Document Object Model
Try this self-check quiz to test your knowledge!
The Document Object Model (DOM) is a hierarchy that most closely resembles what object?
Every node in the DOM represents what?
What three relationships between nodes are key to the DOM hierarchy?
Which method selects the first matching element in the document?
Which command creates a new button?
Which command adds the we just created to the DOM?
What can we accomplish by modifying a DOM element's innerHTML
attribute?
What method allows us to add an attribute to a DOM element?
Which are valid CSS property names in JavaScript?
What does the window.getComputedStyle()
method return?
What prefix indicates that an HTML attribute is intended to store information for computing?
How can we access the data attributes of an HTML element from within JavaScript?
Visit Quiz Online
The quiz on this page has been removed from your PDF or ebook format. You may take the quiz by visiting this book online.