nerdexam
CIW

1D0-635 · Question #34

Which statement is true about the getElementByID() method?

The correct answer is A. It returns only the first element with the specified ID. See the full explanation below for the reasoning.

Question

Which statement is true about the getElementByID() method?

Options

  • AIt returns only the first element with the specified ID.
  • BIt returns an array containing all elements with the specified ID.
  • CIf a match is not found for the specified ID, it will attempt searching by name.
  • DIf a match is not found for the specified ID, it will attempt searching by tag name.

How the community answered

(31 responses)
  • A
    81% (25)
  • B
    6% (2)
  • C
    10% (3)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1D0-635 Practice