简体   繁体   English

错误:杂散开始标签 html。 这是什么意思?

[英]Error: Stray start tag html. What does this mean?

I wrote some code and used w3 validator.我写了一些代码并使用了 w3 验证器。 However it gives me this message Error: Stray start tag html.但是它给了我这个消息错误:Stray start tag html。 I have checked the syntax but cannot find the issue.我检查了语法,但找不到问题。 Can someone help?.有人可以帮忙吗?

This error means that something is not right with html tags in your document.此错误表示您的文档中的 html 标记有问题。 It could be due to:这可能是由于:

1. One of them is not spelled correctly, like <hhtml>

2. They are not in the right place, like one is missing from the top of the file, or that one is not closing the bottom of your file

3. You mixed up their order, like </head> is the top, and <head> is at the bottom.

When you check your tags and fix them, the issue will disappear.当您检查标签并修复它们时,问题就会消失。 You just paste your code in an IDE (if have not done so already) and usually such errors are highlighted.您只需将代码粘贴到 IDE 中(如果尚未这样做),通常会突出显示此类错误。

More info here https://www.w3schools.com/tags/tag_html.asp更多信息在这里https://www.w3schools.com/tags/tag_html.asp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM