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?

Check my answersExplainShow all

Every node in the DOM represents what?

Check my answersExplainShow all

What three relationships between nodes are key to the DOM hierarchy?

Check my answersExplainShow all

Which method selects the first matching element in the document?

Check my answersExplainShow all

Which command creates a new button?

Check my answersExplainShow all

Which command adds the we just created to the DOM?

Check my answersExplainShow all

What can we accomplish by modifying a DOM element's innerHTML attribute?

Check my answersExplainShow all

What method allows us to add an attribute to a DOM element?

Check my answersExplainShow all

Which are valid CSS property names in JavaScript?

Check my answersExplainShow all

What does the window.getComputedStyle() method return?

Check my answersExplainShow all

What prefix indicates that an HTML attribute is intended to store information for computing?

Check my answersExplainShow all

How can we access the data attributes of an HTML element from within JavaScript?

Check my answersExplainShow all

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.

results matching ""

    No results matching ""