Let's test your knowledge. Click the correct answer from the options.
Which method allows you to select an element by its unique ID?
Click the option that best answers the question.
- getElementByClass
- querySelector
- getElementById
- getElementsByTag
Which method allows you to select an element by its unique ID?