CIW Exam Questions

Which statement is true about the getElementByID() method?

Which statement is true about the getElementByID() method?

A.
It returns only the first element with the specified ID.

B.
It returns an array containing all elements with the specified ID.

C.
If a match is not found for the specified ID, it will attempt searching by name.

D.
If a match is not found for the specified ID, it will attempt searching by tag name.

Explanation: