AI Questions & Answers
Part of the Q&A Network
Real Questions. Clear Answers.
Questions
Tags
Purchase Tags
Free Exam
About
Question 1 of 5
selectors
Which method is used to select an element by its ID in JavaScript?
A.
document.getElementById()
B.
document.querySelectorAll()
C.
document.getElementsByClassName()
D.
document.getElementsByTagName()
Cancel
Next Question
Loading...
This site uses cookies to deliver a better user experience and enhance the quality of our network.
Learn more
.
Got it