加载中…
个人资料
StainlessSteelTubing
StainlessSteelTubing
  • 博客等级:
  • 博客积分:0
  • 博客访问:495
  • 关注人气:0
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
相关博文
推荐博文
谁看过这篇博文
加载中…
正文 字体大小:

HTMLKnowledge,ProgrammersHaveToKnowII

(2019-03-12 14:25:13)

Node information

In HTML DOM, everything is a node. DOM is HTML that is considered a node tree. Each node has attributes that contain some information about the node.x42 pipeThese attributes are:

l  NodeName

l  NodeValue

l  NodeType

HTMLKnowledge,ProgrammersHaveToKnowII

 

According to W3C’s HTML DOM standard, all content in HTML documents is nodes:

l  The entire document is a document node

l  Each HTML element is an element node

l  The text within an HTML element is a text node

l  Each HTML attribute is an attribute node

l  Annotations are annotation nodes

 

HTML DOM Method

The way is that we can perform actions on nodes (HTML elements).

 

Programming interface

l  HTML DOM can be accessed through JavaScript (and other programming languages).

l  All HTML elements are defined as objects, while programming interfaces are object methods and object attributes.

l  The method is the action that you can perform (such as adding or modifying elements).

l  Property is a value that you can get or set (such as the name or content of a node).

 

Certainly, merely this is basic concept and theory for HTML DOM. For profound operation and application links, I suggest the fans of programming would refer the systematical reading materials so that you may learn and grasp it deeply and well. Thanks for reading my post.

0

阅读 评论 收藏 转载 喜欢 打印举报/Report
  • 评论加载中,请稍候...
发评论

    发评论

    以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

      

    新浪BLOG意见反馈留言板 电话:4000520066 提示音后按1键(按当地市话标准计费) 欢迎批评指正

    新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 会员注册 | 产品答疑

    新浪公司 版权所有