document.getElementById() returns null if no element with the specified ID exists in the document. Unlike some other DOM methods that return empty collections when no elements match, getElementById() specifically returns null when it can't find an element with the requested ID. This is important to check in your code to avoid 'cannot read property of null' errors when trying to manipulate elements that don't exist.