本文介绍了< html>的lang属性是什么?标签用于?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在HTML中,在< html>
中有一个lang属性,例如< html lang =en>
。
In HTML, its good to have a lang attribute in <html>
, e.g. <html lang="en">
.
这有用吗?
如果将其用于翻译,即使语言设置为英语,并且文档中的所有中文文本都会将其检测为Google翻译中文而非英文(这意味着Google会忽略 lang
属性)。 解决方案
If this is used for translation, even if language is set to English and there are all Chinese text in the document Google Translate detects it as Chinese, not English (this means Google ignores the lang
attribute).
我引用了
also good read Why use the language attribute?
这篇关于< html>的lang属性是什么?标签用于?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!