Exercise

Divvy Up This Exercise

We have pre-loaded an HTML into the string variable html. In this two part problem you will use this html variable as the HTML document to set up a Selector object with, and create a SelectorList which selects all div elements; then, you will check your understanding of what happens within the SelectorList.

Instructions 1/2

undefined XP
    1
    2
  • Set up the Selector object sel with the html variable passed as the text argument.
  • Assign to the variable divs a SelectorList of all div elements within the HTML document.