HTML验证 [英] HTML validation

查看:85
本文介绍了HTML验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 http://www.wasmundbindery.com

并得到了这个回复。我不明白它的意义或解决方法。


您的文件中的DOCTYPE声明无法识别。这可能是

意味着正式公共标识符包含拼写错误,或者

声明没有使用正确的语法。验证是使用

默认后退进行的。文档类型定义非常类似于HTML 4.01

Transitional,但在您使用DOCTYPE声明更正

问题之前,该文档将无效。

此页面不是有效的HTML 4.01 Transitional!

以下是尝试使用SGML解析器解析此文档的结果。

第1行,第0列:无文档型式声明;隐含<!DOCTYPE HTML

SYSTEM>"

I used the W3C markup and validation service for http://www.wasmundbindery.com
and got this reply back. I don''t understand what it means or how to fix it.

The DOCTYPE Declaration in your document was not recognized. This probably
means that the Formal Public Identifier contains a spelling error, or that the
Declaration is not using correct syntax. Validation has been performed using a
default "fallback" Document Type Definition that closely resembles HTML 4.01
Transitional, but the document will not be Valid until you have corrected the
problem with the DOCTYPE Declaration.
This page is not Valid HTML 4.01 Transitional!
Below are the results of attempting to parse this document with an SGML parser.
Line 1, column 0: no document type declaration; implying "<!DOCTYPE HTML
SYSTEM>"

推荐答案

在comp.infosystems中。 www.authoring.html Marinemasters说:
In comp.infosystems.www.authoring.html Marinemasters said:
我在 http://www.wasmundbindery.com 上使用了W3C标记和验证服务。并且得到了这个回复。我不明白这意味着什么或如何解决它。

您的文档中的DOCTYPE声明无法识别。
I used the W3C markup and validation service for http://www.wasmundbindery.com
and got this reply back. I don''t understand what it means or how to fix it.

The DOCTYPE Declaration in your document was not recognized.




< ; meta name =" generator" content =" Microsoft FrontPage 5.0"


它不值得为您提供帮助。 FP会再次将它搞砸

,但请将其粘贴在文档的顶部:


<!DOCTYPE HTML PUBLIC" - // W3C / / DTD HTML 4.01 Transitional // EN" http://www.w3.org/TR/html4/loose.dtd">


我强烈建议转储FP。如果你想要wysinwyg使用一个编辑器,

可以做到没有错误[1]:
http://www-3.ibm.com/software/webservers/hpbuilder/

[1]除了很少有专有属性,你应该使用css

无论如何。


-

由brucies表示的事实和意见< br $>
littlevoices

不一定与brucie持有的相同。



<meta name="generator" content="Microsoft FrontPage 5.0">

its not really worth the effort to help you. FP will just screw it up
again but stick this at the top of your documents:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

i strongly recommend dumping FP. if you want wysinwyg use an editor that
can do it without errors[1]:
http://www-3.ibm.com/software/webservers/hpbuilder/
[1]except for a few proprietary attributes that you should be using css
for anyway.

--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.


Marinemasters写道:
Marinemasters wrote:
我为 http://www.wasmundbindery.com使用了W3C标记和验证服务
并得到了这个回复。我不明白这意味着什么或如何解决它。

您的文档中的DOCTYPE声明未被识别。 ...
此页面不是有效的HTML 4.01 Transitional!
I used the W3C markup and validation service for http://www.wasmundbindery.com
and got this reply back. I don''t understand what it means or how to fix it.

The DOCTYPE Declaration in your document was not recognized. ... This page is not Valid HTML 4.01 Transitional!




那是因为你的页面没有doctype

宣言。在文档的最顶部插入

<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 // EN">

。 />

而我正在使用它:用你可以使用的东西替换你的Javascript菜单

,替换

字体标签css并使用css来实现非常有用的
。您的滚动条的样式仅对Internet Explorer用户可见


-

Inger Helene Falch-Jacobsen
http://home.online.no/~ingerfaj/


在我们的上一集中,

< 20 ************************ ***@mb-m25.aol.com>,

可爱且才华横溢的海事主义者

在comp.infosystems广播。 www.authoring.html:
In our last episode,
<20***************************@mb-m25.aol.com>,
the lovely and talented Marinemasters
broadcast on comp.infosystems.www.authoring.html:
我使用了W3C标记和验证服务/> http://www.wasmundbindery.com 并收到此回复。我不明白这意味着什么或如何解决它。
您的文件中的DOCTYPE声明未被识别。


因为该文件没有DOCTYPE声明。根据你要验证的DTD,输入一个



这可能
意味着正式公共标识符包含拼写错误,或者
声明没有使用正确的语法。已使用
默认后备执行验证。文档类型定义非常类似于HTML 4.01
Transitional,但在您使用DOCTYPE声明更正了
问题之前,该文档将无效。
此页面不是有效的HTML 4.01 Transitional!
以下是尝试使用SGML解析器解析此文档的结果。


第1行,第0列:无文件类型声明;暗示<!DOCTYPE HTML
SYSTEM>
I used the W3C markup and validation service for
http://www.wasmundbindery.com and got this reply back. I don''t
understand what it means or how to fix it. The DOCTYPE Declaration in your document was not recognized.
Because the document does not have a DOCTYPE declaration. Put one
in, according to which DTD you want to validate against.
This probably
means that the Formal Public Identifier contains a spelling error, or that the
Declaration is not using correct syntax. Validation has been performed using a
default "fallback" Document Type Definition that closely resembles HTML 4.01
Transitional, but the document will not be Valid until you have corrected the
problem with the DOCTYPE Declaration. This page is not Valid HTML 4.01 Transitional!
Below are the results of attempting to parse this document with an SGML parser.
Line 1, column 0: no document type declaration; implying "<!DOCTYPE HTML
SYSTEM>"




这是DOCTYPE声明。它位于文档的顶部:


<!DOCTYPE html PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN">


引号中的部分是您认为使用的DTD的名称

(或想要验证)。您还可以使用第二个引用部分

给出DTD所在位置的URI。对于非常标准的DTD,例如W3C DTD之一,这通常不是必需的。


-

Lars Eighner极客代码的指尖 - ei*****@io.com http://www.io.com/~eighner/

如果不是对于肌肉痉挛,我根本不会做任何运动。



This is a DOCTYPE declaration. It goes at the top of the document:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

The part in the quotes is the name of the DTD you think you are using
(or want to validate against). You can also have a second quoted part
giving a URI for where the DTD can be located. This is not usually
necessary for a very standard DTD, such as one of W3C DTDs.

--
Lars Eighner -finger for geek code- ei*****@io.com http://www.io.com/~eighner/
If it wasn''t for muscle spasms, I wouldn''t get any exercise at all.


这篇关于HTML验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆