元标记无效(html5重置模板)
我使用 html5reset 作为网站的重置和模板。但是,我在某些元标记上遇到了各种验证错误:
<meta name="title" >
<meta name="google-site-verification" >
<meta name="copyright" >
<meta name="DC.title" >
<meta name="DC.subject" >
<meta name="DC.creator" >
我可以简单地删除这些元标记,但我宁愿先知道为什么。以下是验证我的网站的链接(通过临时网址在线):http://validator.w3.org/check?uri=http%3A%2F%2Ftanchelmus.be% 2Fsten%2Fnl%2Fnews&charset=%28Detect+自动%29&doctype=Inline&group=0
I am using html5reset as a reset and template for a website. However I am getting all kinds of validation errors on some meta tags:
<meta name="title" >
<meta name="google-site-verification" >
<meta name="copyright" >
<meta name="DC.title" >
<meta name="DC.subject" >
<meta name="DC.creator" >
I could simply remove those meta tags, but I'd rather know why first. Here is the link to validate my website (which is online at a temporary url): http://validator.w3.org/check?uri=http%3A%2F%2Ftanchelmus.be%2Fsten%2Fnl%2Fnews&charset=%28detect+automatically%29&doctype=Inline&group=0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您使用“属性”而不是“名称”,您将通过 HTML5 验证器。
我不完全确定语法是否正确,但我确实在 RDFa 文档中看到了这一点: http:// /en.wikipedia.org/wiki/RDFa
If you use "property" instead of "name" you will pass HTML5 validator.
I'm not entirely sure if the syntax is correct, but I did see this in RDFa documentation here: http://en.wikipedia.org/wiki/RDFa
另一件需要注意的事情是 HTML5 标准正在制定中。因此,W3C HTML5 验证器也是一项正在进行中的工作。
这篇博客文章有一些关于微格式(例如Dublin Core)和微格式的有趣背景。 HTML5。
仅仅为了取悦验证者而进行开发可能并不总是务实的,尤其是正在进行的工作。
Another thing to note is that the HTML5 standard is a work in progress. And thus the W3C HTML5 validator is also a work in progress.
This blog post has some interesting background regarding Microformats (eg Dublin Core) & HTML5.
It may not always be pragmatic to develop just to please the Validator, especially one that is a work in progress.
您似乎被告知您在
name
属性中使用的值不属于您可以使用的有效值集的一部分。WhatWG 网站标识许多标准和其他元名称值。
What it looks like you're being told is that the values you're using in the
name
attribute are not part of the valid set of values you can use.Ths WhatWG Website identifies many of the standard and other meta name values.
您好,要验证都柏林核心标签,您必须更改 dc.到 dcterms。
在这里你可以看到一个例子:
问候!
Hello to validate the Dublin Core tags, you must change dc. to dcterms.
Here you can see an example:
<meta name="dcterms.contributor" content="Your name" />
<meta name="dcterms.keywords" content="Your keywords here" />
Regards!