[英]Why won't this xhtml validate? W3C validator
Not sure why it won't validate it's pretty simple... any ideas? 不知道为什么它不能验证它很简单……有什么想法吗?
The W3 validator is pretty verbose: W3验证器非常冗长:
Line 19, Column 7: end tag for "div" omitted, but OMITTAG NO was specified
</body>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
You're missing a closing </div>
tag: 您缺少结束标记</div>
:
<div id="main_container">
<div id="top_gray"></div>
<div id="header">
<div id="left_container"></div>
<div id="center_container"></div>
<div id="right_container"></div>
<div id="footer"></div>
</div>
^^^^^^ You forgot me
</div>
<div id="header">
未关闭
<div id="main_container">
is not closed. <div id="main_container">
未关闭。
Indent your code well in a decent editor and you should be able to find these things easily. 在一个不错的编辑器中使代码缩进得很清楚,您应该能够轻松找到这些内容。
W3C's validator points it out pretty clearly. W3C的验证器非常清楚地指出了这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.