1. Definition: htmlDOM is an object-oriented tree model that contains all elements in html; all elements contained in the dom can be found through html.
2. Function:
1. Find html elements
1) Find elements by id (document.getElementById();)
<div id="d" ></div>
var x=document.getElementById("d");
2) Find elements by tag name
<div id="m"></div>
var x=document.getElementById("m");
var y=x.getElementByTagName("div");
3) Find elements by class name
3. Change HTML
1) Change the html content
2) Change the html attributes
3) Change the html style
4. HTMLDOM Events
1) Respond to events
2) HTML event attributes
3) Use htmlDOM to allocate events