Html HTML5 一致性检查器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3989201/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 04:55:06  来源:igfitidea点击:

HTML5 Conformance Checker

htmlw3c-validation

提问by Joel

I got the following warning using the W3C validator:

我使用 W3C 验证器收到以下警告:

Using experimental feature: HTML5 Conformance Checker

使用实验性功能:HTML5 Conformance Checker

What exactly does it mean? That I can't count on this validator?

究竟是什么意思?我不能指望这个验证器?

回答by Jo Sprague

The warning "Using experimental feature: HTML5 Conformance Checker." means that the validator is checking your markup as HTML5, but since the w3c hasn't agreed on every part of the HTML5 standard, you should take what the validator says with a grain of salt, because it is prone to change until the standard is complete. The warning does not mean that there is anything wrong with your code, but if you want to get rid of the warning, try validating with a Doctype of "HTML 4.01 Strict".

警告“使用实验性功能:HTML5 一致性检查器”。意味着验证器正在将您的标记检查为 HTML5,但由于 w3c 尚未就 HTML5 标准的每一部分达成一致,您应该对验证器所说的持保留态度,因为在标准生效之前,它很容易发生变化完全的。警告并不意味着您的代码有任何问题,但如果您想摆脱警告,请尝试使用“HTML 4.01 Strict”的 Doctype 进行验证。

回答by Quentin

HTML5 is an unfinished draft so the validator is:

HTML5 是一个未完成的草案,所以验证器是:

  • New and subject to more bugs than one that has been in production for years (since HTML5 has abandoned the SGML legacy of its predecessors--you can't just use a DTD based validator)
  • Comparing your document to a moving target (which might have fallen behind)
  • 新的并且比已经生产多年的错误更多(因为 HTML5 已经放弃了其前辈的 SGML 遗产——你不能只使用基于 DTD 的验证器)
  • 将您的文档与移动目标(可能已经落后)进行比较

回答by Ian Devlin

In addition to what Ronnie says, I tend to use HTML5 Validatorwhich doesn't give you that message, but it is of course also still experimental although things are unlikely to change much in the HTML5 specification at this stage I believe.

除了 Ronnie 所说的,我倾向于使用HTML5 Validator,它不会给你这个消息,但它当然也仍然是实验性的,尽管我相信在这个阶段 HTML5 规范中的事情不太可能发生太大变化。

回答by Rocket Ronnie

It means the there are no issues with your code, however the document may or may not be semantically correct.

这意味着您的代码没有问题,但是文档在语义上可能正确也可能不正确。

check out this article http://www.alistapart.com/articles/semanticsinhtml5/

查看这篇文章http://www.alistapart.com/articles/semanticsinhtml5/