Which of the following methods can select multiple elements?

  • querySelector
  • getElementByClass
  • getElementByTag
  • querySelectorAll
The querySelectorAll method can select multiple elements that match a specified CSS selector. It returns a NodeList containing all matching elements. The other options select only single elements.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *