概述
3.2.3.1 The id attribute
The id attribute specifies its element’s unique identifier (ID).
[DOMCORE]
The value must be unique amongst all the IDs in the element’s home
subtree and must contain at least one character. The value must not
contain any space characters.
An element’s unique identifier can be used for a variety of purposes,
most notably as a way to link to specific parts of a document using
fragment identifiers,as a way to target an element when scripting,
and as a way to style a specific element from CSS.
Identifiers are opaque strings. Particular meanings should not be
derived from the value of the id attribute.
最后
以上就是慈祥凉面为你收集整理的html的标签id内容使用数字,在HTML5中使用数字启动ID是否有效?如果我们使用HTML5 doctype,其他技术是否支持这些id?...的全部内容,希望文章能够帮你解决html的标签id内容使用数字,在HTML5中使用数字启动ID是否有效?如果我们使用HTML5 doctype,其他技术是否支持这些id?...所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复