如何解决此错误:属性rel的值为原始值 [英] How to solve this error : Bad value original-source for attribute rel
问题描述
我尝试使用w3c验证我的网站,但发现错误:
不良值original-source for attribute rel元素链接:
字符串original-source不是注册关键字。
对于:
< link rel =original-sourcehref =http://themarketmogul.com//>
任何人都可以向我建议我可以为这个错误做些什么。
rel
属性指定链接的类型。这个属性(类型)接受的值有限。规范在 4.8.4链接类型一节中定义它们:
- alternate - 提供当前文档的备用表示形式。 作者 - 给出当前作者的链接文档或文章。
- bookmark - 为最近的祖先部分提供永久链接。
等。
此列表还可能包含用于导入CSS样式表的最为人熟知的样式表
类型。但是有
没有原始来源类型。因此,您得到的验证错误。
在您的情况下,您可能正在寻找 meta
标签,名称为原始来源(请参阅codyogden的答案)。
I am trying to validation my site with w3c but i am getting error:
Bad value original-source for attribute rel on element link:
The string original-source is not a registered keyword.
For:
<link rel="original-source" href="http://themarketmogul.com/" />
Can any one suggest me what i can do for this error.
The rel
attribute specifies type of the link. There are limited set of values this attribute (the type) accepts. Specification defines them in section 4.8.4 Link types:
- alternate - Gives alternate representations of the current document.
- author - Gives a link to the author of the current document or article.
- bookmark - Gives the permalink for the nearest ancestor section.
etc.
This list also includes probably the best known stylesheet
type for importing CSS stylesheets. But there are
no "original-source" type. Hence, the validation error you get.
In your case you probably looking for the meta
tag with the name "original-source" (see codyogden's answer).
这篇关于如何解决此错误:属性rel的值为原始值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!