1. getElementsbyId()
  2. getElementbyId()
  3. both getElementsbyId() and getElementbyId()
  4. none of the mentioned
4 views

1 Answers

Answer: Option 2

The Document object has important methods such as getElementById(), which returns a single document element (representing an open/close pair of HTML tags and all of the content between them) based on the value of its id attribute.

4 views