验证错误没有意义
有人可以向我解释一下我在尝试验证我的网站时收到的错误吗?它们太长了,无法在此处具体提及,但大多数都是参考元标记,如果您转到 w3c 验证并验证,http://sunnahspace.com 您将看到错误。验证时我很难理解这些错误,解决这些错误会很好,但我正在寻找的是能够解释为什么会发生这些错误的人,这样我就不必每次验证时都寻求帮助。提前致谢。
Can someone explain to me the errors I am receiving while trying to validate my site, they are too long to mention here specifically but most are in reference to meta tags, if you go to w3c validation and validate, http://sunnahspace.com you will see the errors. I have a lot of difficulty understanding these errors when validating, a fix for these would be good but what I am looking for is someone who can explain WHY these errors are occurring so I don't have to ask for help every time I validate. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我认为这是因为您使用的是 XHTML DocType 但具有大写的标签名称和属性键。所有标签名称和属性键都应该小写。所有属性值都应用引号引起来。
应该是
I think it is because you are using an XHTML DocType but have uppercase tag names and attribute keys. All tag names and attribute keys should be lowercase. All attribute values should be enclosed in quotation marks.
should be
您的大多数问题似乎是:
script
、meta
)和属性(src
、language
、content
等)小写。/
。language
或使其language="javascript"
并使用而不是使用
/> 关闭它;
虽然我认为这对于 javascript 标签来说并不重要。Majority of your problems seem to be:
script
,meta
) and attributes (src
,language
,content
etc) lowercase./
before it's close.language
or make itlanguage="javascript"
and close it with</script>
instead of with a/>
though I think it shouldn't matter for javascript tags.SRC 和 META 标签错误可能是因为您使用的是 XHTML 并且标签和属性应该是小写字符。 url(出价)中的错误是因为您必须使用
&
字符而不是&
。the SRC and META tag erros are probably because you are using XHTML and tags and attributes should be lowercase characters. The errors in the url (bid) are because you have to use a
&
character instead of&
.错误第 5 行第 12 列:没有属性“名称”
第 5 行,第 28 列:没有属性“content”
第 5 行,第 46 列:元素“META”未定义
错误第 21 行第 7 列:省略了“META”的结束标记,但指定了 OMITTAG NO
第 5 行,第 1 列:开始标签位于此处
第 21 行,第 7 列:“head”的结束标记尚未完成
第 75 行,第 18 列:没有属性“LANGUAGE”
第 75 行,第 38 列:没有属性“SRC”
第 75 行,第 128 列:元素“SCRIPT”未定义
第 75 行,第 93 列:无法为一般实体“bid”生成系统标识符
&
以便浏览器可以正确读取urlError Line 5, Column 12: there is no attribute "name"
Line 5, Column 28: there is no attribute "content"
Line 5, Column 46: element "META" undefined
Error Line 21, Column 7: end tag for "META" omitted, but OMITTAG NO was specified
Line 5, Column 1: start tag was here
Line 21, Column 7: end tag for "head" which is not finished
Line 75, Column 18: there is no attribute "LANGUAGE"
Line 75, Column 38: there is no attribute "SRC"
Line 75, Column 128: element "SCRIPT" undefined
<script type="text/javascript" src="…"></script>
Line 75, Column 93: cannot generate system identifier for general entity "bid"
&
so the browser can read the url correctly