What is HTML DOM?
DOM is a standard interface by which we can access/ update /add HTML elements.
So how is the DOM structured?
HTML DOM (Document object model) has a hierarchal structure.
<input type=text name=”txtname” value=”shiv”/>
For example for the above HTML code , below is the DOM hierarchy structure.
var x = document.forms.txtname.value;