--> So this method is used in cases when you want to select the 1st elements our of many or if you want to select a particular element or a uinque element Note when we are using queryselector and we ...
document.getElementById(id) - Selects an element by its ID. document.getElementsByClassName(className) - Selects elements by their class name. document.getElementsByTagName(tagName) - Selects elements ...