The browser creates a Document Object Model (DOM) whenever a web page loads. It consists of objects and nodes that map a web page's different attributes and elements. Hence, you'll then get a mapped-out page that can be manipulated and further modified by other programs in terms of content, styling, and structure. Thanks to JavaScript, modifying elements present on a page's DOM is possible and very easy.