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内容请搜索靠谱客的其他文章。
发表评论 取消回复