Chrome 翻译需要 "lang" 标签吗?
Do I need the "lang"-tag for Chrome translation?
Chrome 翻译需要 <html lang="de-DE">
标签吗?或者 Chrome 是否也分析正文部分中使用的单词以检查页面是用哪种语言编写的?
或者我需要在站点的 div 中添加 <html lang="de-DE">
标签吗?
当我使用不止一种语言时怎么办?
Chrome 浏览器可以通过查看多种因素来识别页面语言:
1.the character encoding.
2.the HTTP headers.
3.the encoding meta tag.
4.Analysis of the actual characters or words on the page.
所以是的,你需要 <html lang="de-DE">
-tag。
如果您想对某些内容使用多种语言,您可以在内容周围使用诸如 span 或 div 之类的元素。这是一个例子:
<p>If you want to wish hello to someone in hindi.You would say <span lang="hi"> नमस्ते </span>. Namaste</p>
Chrome 翻译需要 <html lang="de-DE">
标签吗?或者 Chrome 是否也分析正文部分中使用的单词以检查页面是用哪种语言编写的?
或者我需要在站点的 div 中添加 <html lang="de-DE">
标签吗?
当我使用不止一种语言时怎么办?
Chrome 浏览器可以通过查看多种因素来识别页面语言:
1.the character encoding.
2.the HTTP headers.
3.the encoding meta tag.
4.Analysis of the actual characters or words on the page.
所以是的,你需要 <html lang="de-DE">
-tag。
如果您想对某些内容使用多种语言,您可以在内容周围使用诸如 span 或 div 之类的元素。这是一个例子:
<p>If you want to wish hello to someone in hindi.You would say <span lang="hi"> नमस्ते </span>. Namaste</p>