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

How to pick a document element based on the value of its id attribute? Correct Answer getElementbyId()

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. Using this property different operation can be performed on the selected element.

Related Questions

Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a meta element ?
Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a time element ?
Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a data element ?