ExamVeda
Login
Home
Server Side and Client Side Scripting
?

How to pick a document element based on the value of its id attribute?

Answer & Solution
Correct Answer: Option B
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.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Hlobisile Shabangu
Hlobisile Shabangu 6 years ago
The correct answer is: D - None of the mentioned