skip to Main Content

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!

3

Answers


  1. 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

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
  3. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search