符合XHTML 1.1 [英] XHTML 1.1 compliance
问题描述
你好,
我试图让我的页面符合XHTML 1.1,我使用了来自validator.w3.org的
验证器但是我仍然收到一条错误消息
我无法解释。如果有人可以看看它会很好:
http://validator.w3.org/check?uri=ht...t%2Findex.html
它告诉我:
第6行第62行:此处不允许使用字符数据
... ame =" description" content =" Patrick Gebhardt Homepage" />
^
相关的html代码:
1:<?xml version =" 1.0" encoding =" iso-8859-1">
2:<!DOCTYPE html PUBLIC" - // W3C // DTD XHTML 1.1 // EN"
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3:< html xmlns =" http://www.w3。组织/ 1999 / XHTML" xml:lang =" en">
4:< head>
5:< title>没有像127.0.0.1这样的地方< / title>
6:< meta name =" description" content =" Patrick Gebhardt Homepage" />
7:< meta name =" author" content =" Patrick Gebhardt" />
8:< meta name =" keywords" content =" Patrick Gebhardt Homepage" />
9:< meta name =" date"含量=" 2004年2月16日" />
10:< link type =" text / css"的rel ="样式表" HREF =" CSS / main.css的" />
11:< script type =" text / javascript" src =" /js/main.js">< / script>
12:< / head>
希望错误在< head中/>元素,我不会发布所有
代码。
最好的问候
patrick gebhardt
Hello,
i''m trying to get my page to XHTML 1.1 compliance, i used the
validator from validator.w3.org but i still get one error message
which i cant explain. Would be nice if someone can take a look on it:
http://validator.w3.org/check?uri=ht...t%2Findex.html
It tells me:
Line 6, column 62: character data is not allowed here
...ame="description" content="Patrick Gebhardt Homepage" />
^
relevant html code:
1: <?xml version="1.0" encoding="iso-8859-1">
2: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4: <head>
5: <title>There''s no place like 127.0.0.1</title>
6: <meta name="description" content="Patrick Gebhardt Homepage" />
7: <meta name="author" content="Patrick Gebhardt" />
8: <meta name="keywords" content="Patrick Gebhardt Homepage" />
9: <meta name="date" content="16.02.2004" />
10: <link type="text/css" rel="stylesheet" href="css/main.css" />
11: <script type="text/javascript" src="/js/main.js"></script>
12: </head>
Hopefully the error IS in the <head/> element, i wont post all the
code.
best regards
patrick gebhardt
推荐答案
Patrick:
Patrick:
http://validator.w3.org/check?uri=ht...t%2Findex.html
它告诉我:
第6行,第62列:此处不允许使用字符数据
... ame =" description" content =" Patrick Gebhardt Homepage" />
相关的html代码:
[...]
6:< meta name =" description" content =" Patrick Gebhardt Homepage" />
http://validator.w3.org/check?uri=ht...t%2Findex.html It tells me:
Line 6, column 62: character data is not allowed here
...ame="description" content="Patrick Gebhardt Homepage" /> relevant html code:
[...]
6: <meta name="description" content="Patrick Gebhardt Homepage" />
这不是代码中的内容。我找到了这个:
< meta name =" description" content =" Patrick Gebhardt Homepage">< / meta>>
-
Bertilo Wennergren< be ****** @ gmx.net> < http://www.bertilow.com>
That''s not what''s in your code. I find this instead:
<meta name="description" content="Patrick Gebhardt Homepage"></meta>>
--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>
4p*@gmx.de (Patrick)写道:
4p*@gmx.de (Patrick) wrote:
6:< meta name =" description" content =" Patrick Gebhardt Homepage" />
6: <meta name="description" content="Patrick Gebhardt Homepage" />
不,你有
< meta name =" description" content =" Patrick Gebhardt Homepage">< / meta>>
-
热门发布。
Usenet上最令人恼火的事情是什么?
No, you have
<meta name="description" content="Patrick Gebhardt Homepage"></meta>>
--
Top-posting.
What''s the most irritating thing on Usenet?
4p*@gmx.de (Patrick)写道:
4p*@gmx.de (Patrick) wrote:
我试图让我的页面符合XHTML 1.1,我使用了validator.w3.org的
验证器,但我仍然得到一条错误消息
我无法解释。如果有人可以看看它会很好:
http://validator.w3.org/check?uri=ht...t%2Findex.html
你改变了吗?该页面根本不符合下面的代码。
上面的页面没有验证,因为你正在使用一个虚构的doctype
- < ;!DOCTYPE html PUBLIC" - // W3C // DTD HTML 4.01 Strict // EN">
正确的doctype是<!DOCTYPE html PUBLIC" - // W3C // DTD HTML 4.01 // EN">
它告诉我:
第6行,第62列:此处不允许使用字符数据
... ame =" description" content =" Patrick Gebhardt Homepage" />
^
i''m trying to get my page to XHTML 1.1 compliance, i used the
validator from validator.w3.org but i still get one error message
which i cant explain. Would be nice if someone can take a look on it:
http://validator.w3.org/check?uri=ht...t%2Findex.html
Have you changed it? That page doesn''t match the code below at all.
The page above dosn''t validate because you''re using a made-up doctype
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"> the
correct doctype is <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
It tells me:
Line 6, column 62: character data is not allowed here
...ame="description" content="Patrick Gebhardt Homepage" />
^
< meta>< / meta>将验证。我会把它留给那些了解XHTML 1.1的逻辑(或缺乏)来解释原因的人。
Steve
< br $> b $ b -
我的理论给你起见,我的异端邪说你们,
我从不回信,你不喜欢我的领带" - 医生
Steve Pugh< st *** @ pugh.net> < http://steve.pugh.net/>
<meta></meta> will validate. I''ll leave it to someone who understands
the logic (or lack thereof) of XHTML 1.1 to explain why.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don''t like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
这篇关于符合XHTML 1.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!