[英]W3C validator reports “Stray end tag ’html’”
I'm baffled at what could be causing the validator error on this page as there's not a lot on this page. 我对可能导致此页面上的验证器错误的原因感到困惑,因为此页面上没有太多内容。 The error is on the <html> tag, I get a "Stray end tag
html
" message. 错误出现在<html>标记上,我收到“杂散结束标记
html
”消息。 What's wrong? 怎么了?
http://validator.w3.org/check?uri=www.neurologicclinic.net&charset=%28detect+automatically%29&doctype=Inline&group=0 http://validator.w3.org/check?uri=www.neurologicclinic.net&charset=%28detect+automatically%29&doctype=Inline&group=0
<html></html>
标记应包装所有HTML内容,包括head
标记。
You open an <html>
tag after you already had your <head>
section. 在拥有
<head>
部分之后,打开一个<html>
标记。 This is invalid. 这是无效的。 The general order of those tags is as follows:
这些标签的一般顺序如下:
<html>
<head>
</head>
<body>
</body>
</html>
You are missing an open <html>
tag. 您缺少打开的
<html>
标记。 It must go before <head>
它必须在
<head>
之前
<!doctype html>
<html>
<head>
...
</head>
...
</html>
I believe your <html>
tag should be defined above the <head>
section, not after it. 我相信您的
<html>
标签应该在<head>
部分的上方定义,而不是在其之后。
eg 例如
<!DOCTYPE html>
<html>
<head>
..
</head>
<body>
..
</body>
</html>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.