The _________ method returns all elements in the document with the specified tag name as a NodeList.

  • querySelector()
  • getElementByTagName()
  • getElementsByClassName()
  • querySelectorAll()
The getElementByTagName() method returns all elements in the document with the specified tag name as a NodeList. It's important to note that this method is older and less flexible than querySelectorAll(), which can select elements based on more complex criteria.
Add your answer
Loading...

Leave a comment

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