这篇文章主要讲HTML DOM
<html><head><title>文档标题</title></head><body><a href="#">我的链接</a> <h1>我的标题</h1></body></html>它的DOM树是这样的:

这样就比较清楚了。| 节点类型值 | 节点类型 | 描述 | 子节点 | 
|---|---|---|---|
| 1 | Element | 代表元素 | Element, Text, Comment, PRocessingInstruction, CDATASection, EntityReference | 
| 2 | Attr | 代表属性 | Text, EntityReference | 
| 3 | Text | 代表元素或属性中的文本内容。 | None | 
| 4 | CDATASection | 代表文档中的 CDATA 部分(不会由解析器解析的文本)。 | None | 
| 5 | EntityReference | 代表实体引用。 | Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference | 
| 6 | Entity | 代表实体。 | Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference | 
| 7 | ProcessingInstruction | 代表处理指令。 | 
 学习交流 
 
 热门图片 
猜你喜欢的新闻 
新闻热点 2024-04-27 13:35:46 
2024-04-27 13:33:47 
2024-04-24 22:53:44 
2024-04-23 19:32:50 
2024-04-23 19:25:50 
2024-04-23 19:13:19 
疑难解答  |