What does document.getElementById() do?

Access an element by its IDCreate a new element with a certain IDAdd an element to a parent element

Access an element by its ID.