HTML5`< link rel ="快捷图标" />` [英] HTML5 `<link rel="shortcut icon" />`

查看:91
本文介绍了HTML5`< link rel ="快捷图标" />`的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WHATWG文件对于HTML5来说, rel 属性必须包含空格分隔的值,然后给出一个允许值的表。

The WHATWG document for HTML5 says that the rel attribute must contain values that are space-separated, and then it gives a table of allowed values.


attribue的值必须是一组空格分隔的标记。 允许使用关键字及其含义。 ..

链接元素的允许关键字列表不包含快捷方式,但它包含图标。因此,我正在寻找这个众所周知的标签

The list of allowed keywords for the link element does not include shortcut, but it does include icon. So I'm looking at the all-too-well-known tag

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

并想知道它是否符合HTML5。我应该在整个我的网站上从这个标签中删除关键字快捷方式吗?

and wondering if it is HTML5-compliant. Should I remove the keyword shortcut from this tag throughout my Website?

推荐答案

从相同的WHATWG文档中:

From the same WHATWG document:


由于历史原因,图标关键字可能以
关键字快捷方式开头。如果存在快捷方式关键字,则它必须是紧挨着icon关键字之前的
,并且这两个关键字必须是
,并且仅由一个U + 0020 SPACE字符分隔。

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`&lt; link rel =&quot;快捷图标&quot; /&GT;`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆