Question #147668

Which JavaScript method is used to access an HTML element by id?


Options:

Explanation:
The JavaScript method document.getElementById(id) is used to access an HTML document by id.
Tags: JavaScript

Question Screenshot

Question Screenshot
For best sharing results, download the image first and then attach it to your social media post.

Test Your Knowledge

Want to practice more questions like this? Take a quiz in this category!

Take a Quiz

Share This Question