Do I need a "lang" tag to translate to Chrome?
1 answer
The Chrome browser can identify the language of the page by looking at several factors:
1.the character encoding.
2.the HTTP headers.
3.the encoding meta tag.
4.Analysis of the actual characters or words on the page.
So yes, you need <html lang="de-DE">-tag.
If you want to use multiple languages for some content, you can use elements such as span or div around the content. Here is an example:
<p>If you want to wish hello to someone in hindi.You would say <span lang="hi"> नमस्ते </span>. Namaste</p>
0