首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >W3C验证- Wordpress DOC类型

W3C验证- Wordpress DOC类型
EN

Stack Overflow用户
提问于 2013-01-13 02:53:30
回答 1查看 321关注 0票数 0

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

Website Link

错误:

代码语言:javascript
复制
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类型更改为:

代码语言:javascript
复制
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

然而,它仍然会拾取错误吗?

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-01-13 03:00:46

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

这是我添加的单据类型

代码语言:javascript
复制
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14296795

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档