Which of the following is the correct syntax for using the getElementsByTagName() method to return all of

Question:

Which of the following is the correct syntax for using the getElementsByTagName() method to return all of a document’s p elements?

a. document.getElementsByTagName("

")

b. document.getElementsByTagName("p")

c. document.getElementsByTagName(

)

d. document.getElementsByTagName() = "

"

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

JavaScript

ISBN: 9781305078444

6th Edition

Authors: Sasha Vodnik, Don Gosselin

Question Posted: