从XHTML 1.0开始 [英] beginning with XHTML 1.0

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

问题描述

我尝试从XHTML 1.0开始,并成功获得一个文档有效。


但是我得到的反馈听起来好像我应该改变我的内容

文件:


该文件位于< http://www.kantele.de/>暂时是

被认为是有效的。这意味着它将验证为XHTML 1.0

Transitional如果您更新源文档以匹配使用的选项

(通常此消息表明您使用了文档
类型覆盖或字符编码覆盖)。


我认为文档开头的文档声明

不正确。


在文档末尾有HTML 4.01的图标,

我在哪里可以得到XHTML 1.0的相应图标


感谢您的帮助


Werner


-

------ -------------------------------------------------- ---

Werner合伙人*电话+49 2366 886606 *传真:886608

mailto:ka **** @ sonoptikon.de * http://www.sonoptikon.de

h?ren Sie Klassik: http://www.drmk.ch/

I tried to begin with XHTML 1.0 and succeeded to get one document valid.

But I got a feedback which sounds as if I should change something in my
document:

The document located at <http://www.kantele.de/> was tentatively
found to be Valid. That means it would validate as XHTML 1.0
Transitional if you updated the source document to match the options
used (typically this message indicates that you used either the Document
Type override or the Character Encoding override).

I suppose that the document declaration at the beginning of my document
is not correct.

At the end of the document there is the icon for HTML 4.01,
where can I get the coresponding icon for XHTML 1.0

Thanks for help

Werner

--
-----------------------------------------------------------
Werner Partner * Tel +49 2366 886606 * Fax: 886608
mailto:ka****@sonoptikon.de * http://www.sonoptikon.de
h?ren Sie Klassik: http://www.drmk.ch/

推荐答案

2004年4月3日星期六20:26:42 +0200,Werner Partner< ka **** @ sonoptikon.de>

写道:
On Sat, 03 Apr 2004 20:26:42 +0200, Werner Partner <ka****@sonoptikon.de>
wrote:
我试图从XHTML 1.0开始,并成功地使一个文档有效。

但我收到的反馈听起来好像我应该改变我的
文件中的内容:

该文件位于< http://www.kantele.de/>暂时被认为是有效的。这意味着如果您更新源文档以匹配所使用的选项,它将验证为XHTML 1.0
Transitional(通常此消息表明您使用了文档
类型覆盖或字符编码覆盖)。

我认为文档开头的文档声明不正确。

文档末尾有HTML图标4.01,
我在哪里可以获得XHTML 1.0的相应图标

感谢您的帮助

Werner
I tried to begin with XHTML 1.0 and succeeded to get one document valid.

But I got a feedback which sounds as if I should change something in my
document:

The document located at <http://www.kantele.de/> was tentatively
found to be Valid. That means it would validate as XHTML 1.0
Transitional if you updated the source document to match the options
used (typically this message indicates that you used either the Document
Type override or the Character Encoding override).

I suppose that the document declaration at the beginning of my document
is not correct.

At the end of the document there is the icon for HTML 4.01,
where can I get the coresponding icon for XHTML 1.0

Thanks for help

Werner




你有


<!doctype html

public" - // W3C // DTD XHTML 1.0 Transitional // EN"

" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


资本化DOCTYPE和PUBLIC


<!DOCTYPE html

PUBLIC" - // W3C // DTD XHTML 1.0 Transitional // EN"

" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


它应该有效。


如果我是你,我会改变< meta>< / meta>至< meta /> - 与< br />相同,

< hr />和< img /> ;.


实际上如果我是你,我会使用严格的DTD(XHTML或HTML 4.01)

for一个新文档,用样式表信息替换所有已弃用的HTML。

也许我错过了一些东西,但是如果你没有看到XHTML的感觉那就是
使用字体标签等。



You have

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

Capitalize "DOCTYPE" and "PUBLIC"

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

and it should work.

If I were you, I''d change <meta></meta> to <meta /> - same with <br />,
<hr /> and <img />.

Actually if I were you, I''d use a strict DTD (either XHTML or HTML 4.01)
for a new document and replace all deprecated HTML with stylesheet info.
Maybe I''m missing something, but I don''t see the sense of XHTML if you''re
using font tags and such.


Neal< ne ***** @ spamrcn.com>写道:
Neal <ne*****@spamrcn.com> wrote:
Capitalize" DOCTYPE"和PUBLIC
Capitalize "DOCTYPE" and "PUBLIC"




我没有意识到XML确实使这些字符串区分大小写。

验证者的行为很奇怪。它应该自然地报告

没有可用的文档类型声明,因此验证是通过

定义不可能的。相反,它似乎暗示HTML 4.01 Transitional

而不这么说。


有一个更可读的报告验证器
http://www.htmlhelp.com/tools/validator/

(虽然在接受字符串的意义上技术上是错误的

doctype和XHTML中的小写公开)。


-

Yucca, http://www.cs.tut .fi / ~jkorpela /

关于网页创作的网页: http://www.cs.tut.fi/~jkorpela/www.html



I hadn''t realized that XML really makes those strings case sensitive.
The validator''s behavior is rather odd. It should naturally report that
there was no document type declaration available, hence validation is by
definition impossible. Instead it seems to imply HTML 4.01 Transitional
without saying so.

There''s a validator with more readable reports at
http://www.htmlhelp.com/tools/validator/
(though it is technically in error in the sense of accepting the strings
doctype and public in lower case in XHTML).

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


Werner合作伙伴< ka **** @ sonoptikon.de>写道:
Werner Partner <ka****@sonoptikon.de> wrote:
我试图从XHTML 1.0开始,并成功获得一个文件
有效。


不是真的。验证者的报告具有误导性,如果不是错误的话。

该文件位于< http://www.kantele.de/>暂时被认为是有效的。


没有暂时有效的东西(更像是暂时还活着,或暂时是真的),每当有人写作时/>
有效在正常文本中有资本初始化,一些bogosity警告

铃声响起。

我认为我的
文件开头的文件声明不正确。


Neal指出这有什么问题。您可能已经尝试按原样验证文档,然后使用doctype override。

功能验证器的用户界面。该功能本身很有用,但验证器报告效果的方式不是.b
。如果您更改doctype声明,则不需要

功能。

在文档末尾有HTML 4.01的图标,
我在哪里可以获得XHTML 1.0的相应图标
I tried to begin with XHTML 1.0 and succeeded to get one document
valid.
Not really. The validator''s report is misleading, if not plain wrong.
The document located at <http://www.kantele.de/> was tentatively
found to be Valid.
There''s no such thing as being tentatively valid (any more like being
tentatively alive, or tentatively true), and whenever someone writes
"Valid" with capital initial inside normal text, some bogosity alert
bells should ring.
I suppose that the document declaration at the beginning of my
document is not correct.
Neal pointed out what was wrong with that. You had presumably tried to
validate the document as is, then used the "doctype override" feature in
the validator''s user interface. The feature is useful per se, but the way
that the validator reports the effects is not. And you don''t need the
feature if you change the doctype declaration.
At the end of the document there is the icon for HTML 4.01,
where can I get the coresponding icon for XHTML 1.0




图标比无用的更糟糕。他们没有为你的
页面的价值添加任何内容,但会分散内容并为大多数用户创造谜。

此外,他们可能会误导其他作者进行传播单词。

有关详细信息,请参阅 http://www.cs.tut.fi/~jkorpela/html/validation.html


-

Yucca, http://www.cs.tut.fi/~jkorpela/

关于网页创作的网页: http://www.cs.tut.fi/~jkorpela/www.html



The icons are worse than useless. They add nothing to the value of your
page, but the distract from the content and create enigmas to most users.
Besides, they may mislead other authors into "spreading the word".
For more details, see http://www.cs.tut.fi/~jkorpela/html/validation.html

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


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

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