[英]The W3C Markup Validation Service says a <body> tag is not allowed
When validating my page (https://www.slamgmt.com), it says: 验证我的页面(https://www.slamgmt.com)时,它显示:
document type does not allow element "body" here 文档类型此处不允许元素“ body”
The body tag is the only tag in the HTML root tag other than the head tag. 除head标记外,body标记是HTML根标记中唯一的标记。 I have no idea why it's failing.
我不知道为什么它失败了。
The change that caused this was switching from XHTML1.0 Strict to XHTML1.0 Frameset. 导致此问题的更改是从XHTML1.0 Strict切换到XHTML1.0 Frameset。 It validates in Strict, but not in the looser Frameset?
它可以在严格条件下进行验证,但不能在宽松的框架集中进行验证吗? I'm so confused.
我很混乱。
Frameset documents contain a <frameset>
not <body>
. 框架
<frameset>
文档包含<frameset>
而不是<body>
。
It is Transitional that is Strict + things that should generally be avoided. 过渡是严格应避免的事情。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.