HTML5“

HTML5的 WHATWG document表示rel属性必须包含以空格分隔的值,然后给出一个允许值的表。

The attribue’s value must be a set of space-separated tokens. The 07001…

链接元素的允许关键字列表不包括快捷方式,但它包括图标。所以我在看着这个众所周知的标签

<link rel="shortcut icon" href="/favicon.ico" />

并想知道是否符合HTML5。我应该从我的网站的此标记删除关键字快捷方式吗?

解决方法

从同一WHATWG文档:

For historical reasons,the icon keyword may be preceded by the keyword “shortcut”. If the “shortcut” keyword is present,it must be come immediately before the icon keyword and the two keywords must be separated by only a single U+0020 SPACE character.

相关文章

HTML5和CSS3实现3D展示商品信息的代码
利用HTML5中的Canvas绘制笑脸的代码
Html5剪切板功能的实现
如何通过HTML5触摸事件实现移动端简易进度条
Html5移动端获奖无缝滚动动画实现
关于HTML5和CSS3实现机器猫的代码