html lang属性的html验证错误 [英] html validation error for html lang attribute

查看:218
本文介绍了html lang属性的html验证错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误消息:

该文档似乎是Lorem ipsum文本,但是html开始标记具有lang ="zh-CN".考虑改用lang ="zxx"(或变体).

This document appears to be Lorem ipsum text but the html start tag has lang="en". Consider using lang="zxx" (or variant) instead.

从第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验证错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆