我想創建如下圖所示的XHTML文檔中的表格(如圖所示爲簡潔起見,僅相關部分):文件類型不允許「日」 /「TD」這裏
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<table class="dataTable">
<tfoot><tr><td class="tableFooter" colspan="4"><span>© example.com</span></td></tr></tfoot>
<tbody>
<tr id = "firstRowHeader">
<th class="rowLabel">
<th class ="rowCol colHeader">ABC
<th class ="rowCol colHeader">CDE
<th class ="rowCol colHeader">EFG
<tr><td class ="rowCategory" colspan ="4">Foo
<tr><td class="rowLabel"
<td class ="rowCol cellDataDown">-0.01%
<td class ="rowCol cellDataNoChange">0.09%
<td class ="rowCol cellDataNoChange">717.79
<tr><td class="rowLabel"
<td class ="rowCol cellDataUp">0.00%
<td class ="rowCol cellDataNoChange">0.08%
<td class ="rowCol cellDataNoChange">1,032.02
<tr><td class="rowLabel"
<td class ="rowCol cellDataUp">-0.04%
<td class ="rowCol cellDataNoChange">0.03%
<td class ="rowCol cellDataNoChange">819.17
<tr><td class="rowLabel"
<td class ="rowCol cellDataUp">-0.03%
<td class ="rowCol cellDataNoChange">0.05%
<td class ="rowCol cellDataNoChange">877.45
<tr><td class="rowLabel"
<td class ="rowCol cellDataUp">-0.00%
<td class ="rowCol cellDataNoChange">0.09%
<td class ="rowCol cellDataNoChange">991.57
<tr><td class="rowLabel"
<td class ="rowCol cellDataUp">-0.02%
<td class ="rowCol cellDataNoChange">0.05%
<td class ="rowCol cellDataNoChange">835.42
<tr><td class="rowLabel"
<td class ="rowCol cellDataUp">0.00%
<td class ="rowCol cellDataNoChange">0.05%
<td class ="rowCol cellDataNoChange">1,002.40
<tr><td class="rowLabel"
<td class ="rowCol cellDataDown">-0.01%
<td class ="rowCol cellDataNoChange">0.05%
<td class ="rowCol cellDataNoChange">860.27
</tbody>
</table>
</body>
</html>
當我運行這個doc通過w3c驗證器,我得到了多種錯誤 - 文檔類型不允許'th'(或'td')在這裏。有人可以指出如何解決這個問題嗎?
XHTML要求結束標記! –