Ommadawn
Ommadawn

Reputation: 2730

lang html tag in multilanguage Web

It's recommended to set the lang tag in html as follows:

<html lang="en">

My website is ready to serve pages in a multilanguage way (english, spanish, french, etc.), depending on the location or user settings.

How should I set this tag for a good SEO? I think if I use my internationalization settings, it will be set as the search-crawler location (and I don't know if it's the right way to do it).

Thanks!

Upvotes: 0

Views: 335

Answers (3)

ErrorLane
ErrorLane

Reputation: 43

You can make a page multilanguage by simply adding some text of that language. The thing is that:

<html lang="en">

makes the page that language only but if you put

<html>

like simple the people who speak (e.g: Spainsh) may need to go in Google Translate but it is now multilanguaged.

Thanks in Regards,

ErrorLane

Upvotes: 0

user2540001
user2540001

Reputation:

My website is ready to serve pages in a multilanguage way (english, spanish, french, etc.), depending on the location or user settings.

From this phrase of yours, you can understand that you are using PI to adapt your content. Google does not recommend doing this:

Do not use IP analysis to adapt your content. IP location analysis is difficult and generally not reliable. Furthermore, Google may not be able to crawl variations of your site properly. Most, but not all, Google crawls originate from the US, and we do not attempt to vary the location to detect site variations. Use one of the explicit methods shown here (hreflang, alternate URLs, and explicit links).

A possible solution Google suggests in this same guide:

To geotarget your site on Google:

Page or site level: Use locale-specific URLs for your site or page.

Upvotes: 1

Mina
Mina

Reputation: 154

I think you might need to add the following for each language

<link rel="alternate" href="http://www.mysite.it" hreflang="it-it" />

and I think this has to be done for every page

Upvotes: 1

Related Questions