css - W3C 验证 - Wordpress DOC 类型

标签 css wordpress validation w3c

我提交了以下网站进行验证,但收到此错误:

Website Link

错误:

No DOCTYPE found! Checking with default XHTML 1.0 Transitional Document Type.

No DOCTYPE Declaration could be found or recognized in this document. This generally means that the document is not declaring its Document Type at the top. It can also mean that the DOCTYPE declaration contains a spelling error, or that it is not using the correct syntax.

The document was checked using a default "fallback" Document Type Definition that closely resembles “XHTML 1.0 Transitional”.

我尝试将 DOC 类型更改为:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

但是它仍然会发现错误?

如有任何建议,将不胜感激,谢谢

最佳答案

我在您的源代码顶部看不到文档类型。我添加了一个并通过 W3 checker 手动验证了代码并且它在没有警告的情况下通过了与文档类型相关的内容。

这是我添加的文档类型

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

关于css - W3C 验证 - Wordpress DOC 类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14296795/

相关文章:

Jquery 验证依赖字段

javascript - 阻止 js 文件中的 &lt;style&gt;

javascript - 提交联系表 7 后更改 Div 背景

javascript - 未捕获的类型错误 : Cannot set property 'onclick' of null

mysql - 列表中缺少分类法但仍在数据库中

java - 如何使用java和javascript进行特殊字符验证

html - 无法使用 Bootstrap 从 Angular 4 中的选项卡中删除选项卡边框

css - 如何启用字体变体,如 "Italic Display"

html - 如何在 2 列或更多列中显示 Ruby ActiveAdmin attributes_table 行?

Jquery表单验证插件,如何选择动态生成的输入元素进行验证?