[英]element li not allowed as child of element body in this context
I'm trying some basic html stuff and I get to this error and I have no idea why is that. 我正在尝试一些基本的html东西,但出现此错误,我不知道为什么会这样。 Thanks for help.
感谢帮助。
<!DOCTYPE html>
<html>
<head>
<title>supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h4>ČGK Tour 2015 - 2. turnaj - Kotlina</h4>
<ul>
<li>Datum a místo konání: středa 22.4.2015</li>
</ul>
</body>
</html>
And I keep getting this error: 而且我不断收到此错误:
Element "li" not allowed as child of element "body" in this context.
在这种情况下,元素“ li”不允许作为元素“ body”的子代。 (Suppression furter errors from subtree.) From line 16, column 21;
(从子树中抑制错误。)从第16行第21列开始; to line 16, column 24 (Rule category: Elements structure)
至第16行第24列(规则类别:元素结构)
Yes, even I dont notice any error in your code. 是的,即使我没有注意到您的代码中有任何错误。 I even tried validating it against HTML5 validator but its absolutely fine.
我什至尝试根据HTML5验证器对其进行验证,但绝对可以。
Can you please elaborate if you are still facing the same error. 如果您仍然遇到相同的错误,请详细说明一下。 Or you even mention if you are utilizing some IDE for that.
或者甚至提到是否为此使用了一些IDE。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.