The HTML DOM (Document Object Model) is a programming interface for HTML. When a web page is loaded, the browser creates a Document Object Model of the page. JavaScript can change all HTML elements and attributes in the page.
getElementById()getElementsByClassName()querySelector()querySelectorAll()createElement()appendChild()removeChild()innerHTML / textContentEdit the code below and click Run to see the result live.