XHTML 1.1严格验证< THEAD>和< TFOOT> [英] XHTML 1.1 strict validation of <THEAD> and <TFOOT>

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

问题描述

我尝试使用验证器验证我的图库页面。
http://validator.w3.org/check?uri=ht...ry%2Findex.asp


令我惊讶的是它通知我< tfoot>在文档定义中,XHTML 1.1严格,

无效:
http://www.w3.org/TR/xhtml-modulariz...#s_tablemodule


我的< thead>标签显然是有效的,而我的< tfoot>不是。


如果有人能澄清此事,我将不胜感激。


问候,

Maurice van Creij

I tried validating my gallery page using your validator.
http://validator.w3.org/check?uri=ht...ry%2Findex.asp

To my surprise it informed me that <tfoot> wasn''t valid XHTML 1.1 strict,
while it is in the document definition:
http://www.w3.org/TR/xhtml-modulariz...#s_tablemodule

My <thead> tag apparently was valid, while my <tfoot> wasn''t.

I would appreciate it if anyone could clarify the matter.

Greetings,
Maurice van Creij

推荐答案

Woolly Mittens< wm ****** @ hotmailz.com>写道:
Woolly Mittens <wm******@hotmailz.com> wrote:
我尝试使用验证器验证我的画廊页面。
http://validator.w3.org/check?uri=ht...ry%2Findex.asp

令我惊讶的是,它告诉我< tfoot> XHTML 1.1严格无效,
虽然它在文档定义中:
http://www.w3.org/TR/xhtml-modulariz...##s_tablemodule
I tried validating my gallery page using your validator.
http://validator.w3.org/check?uri=ht...ry%2Findex.asp

To my surprise it informed me that <tfoot> wasn''t valid XHTML 1.1 strict,
while it is in the document definition:
http://www.w3.org/TR/xhtml-modulariz...#s_tablemodule




TFOOT元素需要在TBODY元素之前。表格应按以下顺序包含:



- 可选的CAPTION,后跟

- 可选的COL和COLGROUP元素,接着是

- 一个可选的THEAD元素,接着是

- 一个可选的TFOOT元素,然后是

- 一个或多个TBODY元素


另请参见 http ://www.htmlhelp.com/reference/ht...les/table.html


(自HTML 4以来这没有改变。)

-

Darin McGrew, mc****@stanfordalumni.org http://www.rahul.net/mcgrew/

网页设计组, da***@htmlhelp.com http://www.HTMLHelp.com/

" Pick battles big en重要的是,小到足以赢。 - Jonathan Kozel



The TFOOT element needs to come before the TBODY element. Tables should
contain, in the following order:

- an optional CAPTION, followed by
- optional COL and COLGROUP elements, followed by
- an optional THEAD element, followed by
- an optional TFOOT element, and then
- one or more TBODY elements

See also http://www.htmlhelp.com/reference/ht...les/table.html

(This hasn''t changed since HTML 4.)
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"Pick battles big enough to matter, small enough to win." - Jonathan Kozel




" Darin McGrew" < MC **** @ stanfordalumni.org>在消息中写道

news:bs ********** @ blue.rahul.net ...

"Darin McGrew" <mc****@stanfordalumni.org> wrote in message
news:bs**********@blue.rahul.net...
Woolly Mittens< wm **** **@hotmailz.com>写道:
TFOOT元素需要在TBODY元素之前。表格应按以下顺序包含:
Woolly Mittens <wm******@hotmailz.com> wrote:
The TFOOT element needs to come before the TBODY element. Tables should
contain, in the following order:




谢谢,但将页脚放在身体前面并不奇怪吗?

这不会弄乱文本浏览器中的阅读顺序吗?



Thanks, but isn''t it odd to put the footer before the body?
Wouldn''t that mess up the reading order in text-browsers?


Woolly Mittens写道:
Woolly Mittens wrote:
" Darin McGrew" ; < MC **** @ stanfordalumni.org>在消息中写道
新闻:bs ********** @ blue.rahul.net ...
"Darin McGrew" <mc****@stanfordalumni.org> wrote in message
news:bs**********@blue.rahul.net...
TFOOT元素需要在TBODY之前出现元件。表格应按以下顺序包含:
The TFOOT element needs to come before the TBODY element. Tables should
contain, in the following order:



谢谢,但将页脚放在身体前面并不奇怪吗?
不会这会弄乱文本浏览器中的阅读顺序吗?



Thanks, but isn''t it odd to put the footer before the body?
Wouldn''t that mess up the reading order in text-browsers?




如果浏览器知道如何处理表 - 没有。这个想法是

浏览器可以立即显示页眉和页脚,然后逐步填充正文。甚至可以在一个

可滚动的框中显示主体,它不会溢出画布和标题以及

页脚在不滚动文档的情况下可见。
< br $> b $ b -

Stanimir



If the browser knows how to handle tables - no. The idea is that the
browser could display the header and the footer, right away, then
progressively fill in the body. Even to display the body in a
scrollable box which doesn''t overflow the canvas and the header and
footer are visible without scrolling the document.

--
Stanimir


这篇关于XHTML 1.1严格验证&lt; THEAD&gt;和&lt; TFOOT&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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