JavaScript HTML DOM

When web page is loaded, browser create a DOM for page. With the HTML DOM, JavaScript can access and change all the HTML elements.

Code :