Google Adds Alternate & Hreflang Attributes

Google introduced new SEO specific attributes for handling multi-lingual pages and content. The new attributes are rel=”alternate” and hreflang=”x”. It looks something like this when used in the source code of your files: <link rel=”alternate” hreflang=”a-different-language” href=”https://url-of-the-different-language-page” /> Google says it should be used when (1) template (i.e. side navigation, footer) is machine-translated into various […]

Chat with SearchBot

Google introduced new SEO specific attributes for handling multi-lingual pages and content. The new attributes are rel=”alternate” and hreflang=”x”. It looks something like this when used in the source code of your files:

<link rel=”alternate” hreflang=”a-different-language” href=”https://url-of-the-different-language-page” />

Google says it should be used when (1) template (i.e. side navigation, footer) is machine-translated into various languages, and/or (2) main content remains unchanged, creating largely duplicate pages.

The attributes should be used in conjunction with the rel=”canonical” or 301 redirects you have set up. The Google post goes into detail on how it should be used, but in summary, there are two steps:

Step 1: Once you have the canonical picked out you can use either rel=”canonical” or a 301 (permanent redirect) from the various localized pages to the canonical URL.

Step 2: On the canonical URL, specify the language-specific duplicated content with different boilerplate via the rel=”alternate” link tag, using its hreflang attribute. This way, Google can show the correctly-localized variant of your URLs to our international users.


About the author

Barry Schwartz
Staff
Barry Schwartz is a technologist and a Contributing Editor to Search Engine Land and a member of the programming team for SMX events. He owns RustyBrick, a NY based web consulting firm. He also runs Search Engine Roundtable, a popular search blog on very advanced SEM topics.

In 2019, Barry was awarded the Outstanding Community Services Award from Search Engine Land, in 2018 he was awarded the US Search Awards the "US Search Personality Of The Year," you can learn more over here and in 2023 he was listed as a top 50 most influential PPCer by Marketing O'Clock.

Barry can be followed on X here and you can learn more about Barry Schwartz over here or on his personal site.

Get the newsletter search marketers rely on.