equal to? I have a project, I can only add code under-tag, but it...">

Is <html lang = "de-DE"> equal to <meta http-equiv = "language" content = "DE">?

I have a project, I can only add code under <html>-tag, but it is important that the language is in the header for SEO and some other things.

So my question is:

What is the priority / ranking

<html lang="de-DE"> 

vs

<meta http-equiv="language" content="DE">
+4
source share
2 answers

According to Google Multilingual Recommendations :

Google uses only the visible content of your page to determine its language. We do not use any code level information such as lang.

SEO . URL-:

Google , URL . , URL- .ca fr : http://example.ca/fr/vélo-de-montagne.html http://fr.example.ca/vélo-de-montagne.html.

, (. Rahul Tripathi answer), html 5. .


, hreflang , , .

google docs

+4

HTML5 meta http-equiv="Language" . <html lang="de-DE">.

: HTML, HTTP - ?:

HTTP Content-Language , , . Content-Language http-equiv . language html, .

Content-Language , :

Content-Language . , .

+3

Source: https://habr.com/ru/post/1630052/


All Articles