Quiz: Change Anything on the Page
Explore your understanding of DOM manipulation by answering practical questions that reinforce how to grab elements and change their text content. This lesson helps you prepare for applying these techniques in upcoming mini-projects, building your confidence in dynamic page updates.
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
...