HTML-DOM是w3c组织定义的标准,它定义了访问并操作HTML文档的标准方法(API).
What is the HTML DOM?
- The HTML DOM is the Document Object Model for HTML
- The HTML DOM is platform and language independent
- The HTML DOM defines a standard set of objects for HTML, and a standard way to access and manipulate HTML documents
- The HTML DOM is a W3C standard
The HTML DOM views HTML documents as a tree structure of elements embedded within other elements. All elements, their containing text and their attributes, can be accessed through the DOM tree. Their contents can be modified or deleted, and new elements can be created by the DOM. The elements, their text, and their attributes are all known as nodes.