如何在W3C验证器中验证HTML时获取徽章?

前端之家收集整理的这篇文章主要介绍了如何在W3C验证器中验证HTML时获取徽章?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我正在尝试验证W3C验证器中的4页网站.

当我验证我的CSS页面时,我获得了网页印章徽章的代码.
当我验证我的4个单独的HTML页面时,它们都会验证但不提供徽章的代码.

我如何获得徽章?

最佳答案
如果它没有为您提供,那么您可能正在编写HTML 5(一个是针对HTML 4和XHTML 1文档提供的).

与Michael [tm] Smith见this interview

No,there won’t be a Valid HTML icon any time soon and likely not
ever. The reason is basically that “This is valid” icons/badges
promote the idea that there’s significant value in making public
claims of pass/fail document-conformance requirements in standards.

But the HTML5 checker is by design not intended to encourage anybody
to use it as a means to make public assertions of simple pass/fail
conformance of any documents to any particular specifications; it’s
intended solely as a checker — for people to use to catch unintended
mistakes in documents and fix them — not as a pass/fail certification
mechanism.

There won’t be any proper Valid HTML5 icon forthcoming,so if you’d
like to use one in your content,you’ll probably need to create one on
your own.

所以你没有获得徽章,因为一个徽章不存在.

原文链接:https://www.f2er.com/html/426588.html

猜你在找的HTML相关文章