14.1 Dom model Concept
14.2 Dom model and HTML document
HTML documents are structured documents. Although HTML5 adds some free formats for HTML documents, the browser parses HTML5 documents.
It is still treated as a standard formatted document. All HTML5 documents that can be freely operated using dom
14.2.1 inheritance relationship between HTML elements
Dom provides a complete inheritance system for common HTML elements. From the Document Object of the page to every common HTML element, the DOM Model
Provides corresponding classes. Each class provides corresponding methods to operate the DOM element itself, attributes, and its sub-elements. Dom model allows tree-based operations
Each element in the HTML document. In addition, HTML has the following common elements.
Htmldocument: indicates the HTML document itself.
Htmlbodyelement: represents the <body> Control in the HTML document.
Htmldivelement: common <div> controls in HTML documents.
Htmlformelement: The Form Control in the HTML document.
Htmlselectelement: indicates the list box and drop-down menu control in the HTML document.
Htmloptionelement: indicates the list box and drop-down menu option controls in the HTML document.
Htmliframe: represents the <IFRAME> Control in the HTML document.
Htmlinputelement: controls such as single-line text boxes, password boxes, and buttons in HTML documents.
Htmltableelement: A table control in an HTML document.
Htmltablecaptionelement: The title control of the table in the HTML document.
Htmltablerowelement: Specifies the table row control of tables in HTML documents.
Htmltablecolelement: the column control of the table in the HTML document.
Htmltablecellelement: the cell control of the table in the HTML document.
Htmltextareaelement: a multi-line text field control in an HTML document.
Htmlolelement: indicates the ordered list control in the HTML document.
Htmlulelement: indicates the unordered list control in HTML documents.
Htmllielement: The list item control in the HTML document.