1. getElementById()
The getElementById() method is used to select and return a single HTML element by its unique id attribute. Since an id should be unique within a document, this method will only return one element.
If you enters a wrong id name the...