问题描述
我收到此错误消息:
从第5行第32列开始;到第5行,第47列
From line 5, column 32; to line 5, column 47
html lang ="zh-CN"
html lang="en"
有关更多指导,请参阅无语言标记文本,声明页面的整体语言和选择语言标记.
For further guidance, consult Tagging text with no language, Declaring the overall language of a page and Choosing language tags.
如果HTML检查器错误标识了本文档的语言,请提交问题报告或发送电子邮件以报告问题.
If the HTML checker has misidentified the language of this document, please file an issue report or send e-mail to report the problem.
对于html lang ="en"属性
for html lang = "en" attribute
我现在该怎么办?
推荐答案
您使用的不是英语的lorem ipsum.将语言属性更改为"zxx"应该可以修复验证警告.语言未知时使用Zxx.
You're using lorem ipsum, which isn't English. Changing the language attribute to "zxx" should fix the validation warning. Zxx is used when the language is unknown.
您的选择:1)将"en"更改为"zxx"-html lang ="zxx"2)用英文虚拟文字替换lorem ipsum并保留"en"3)忽略警告,直到您用真实内容更新页面
Your options:1) Change "en" to "zxx" --- html lang="zxx"2) Replace lorem ipsum with English dummy text and keep "en"3) Ignore the warning until you update your page with real content
https://github.com/validator/validator/issues/321
这篇关于html lang属性的html验证错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!