Quiz: Change Anything on the Page
Explore and reinforce your ability to select and change elements on a web page using JavaScript. This quiz helps you practice modifying page content dynamically and prepares you for applying these skills in a real mini-project.
We'll cover the following...
We'll cover the following...
...
Technical Quiz
1.
What is selected by the first <h1> tag on the page?
A.
document.getElementById("h1")
B.
document.querySelector("h1")
C.
document.querySelectorAll("h1")[0]
D.
document.getElementsByClassName("h1")[0]
1 / 3
...