August 6 = 351-355

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.