• Skip to primary navigation
  • Skip to main content

Digital Marketing Agency

  • Home
  • Services
    • Web Design Services
    • Search Engine Optimization
    • Branding
    • Website Maintenance
    • Domain Name Registration
  • Work
  • About
  • Premium Domains
  • Let’s Talk

Multilingual Site Markup For Sitemaps

By Tilak Bisht

Many websites provide their information in different languages. Multiregional website sustantially the same content e.g. English web pages for United Kingdom, USA, Australia and canada.

Last year, Google introduced new markup for multilingual content. The hreflang link element was rel= “alternate”.

“The hreflang attribute can specify the language, optionally the country, and URLs of equivalent content,” the company explains on the Webmaster Central blog. “By specifying these alternate URLs, our goal is to be able to consolidate signals for these pages, and to serve the appropriate URL to users in search. Alternative URLs can be on the same site or on another domain.”

Here are examples of how you may use it respectively:

  • http://www.example.com/ – contains the general homepage of a website, in Spanish
  • http://es-es.example.com/ – is the version for users in Spain, in Spanish
  • http://es-mx.example.com/ – is the version for users in Mexico, in Spanish
  • http://en.example.com/ – is the generic English language version

<link rel="alternate" hreflang="es" href="http://www.example.com/" />
<link rel="alternate" hreflang="es-ES" href="http://es-es.example.com/" />
<link rel="alternate" hreflang="es-MX" href="http://es-mx.example.com/" />
<link rel="alternate" hreflang="en" href="http://en.example.com/" />

Now Google has announced that they are support for specifying the rel-alternate-hreflang annotations in Sitemaps. Here are examples:

<url>
  <loc>http://www.example.com/en</loc>
<xhtml:link 
    rel="alternate"
    hreflang="de"
    href="http://www.example.com/de" />
<xhtml:link
    rel="alternate"
    hreflang="en"
    href="http://www.example.com/en" />
</url>
<url>
  <loc>http://www.example.com/de</loc>
<xhtml:link
    rel="alternate"
    hreflang="de"
    href="http://www.example.com/de" />
<xhtml:link
    rel="alternate"
    hreflang="en"
    href="http://www.example.com/en" />
</url>

For more details on how to use this, see this Google internationalization help forum .

About Tilak Bisht

Tilak Bisht is providing Internet marketing services through his company Actively Media. He can be found on Twitter & Linkedin.

  • Home
  • Services
  • Work
  • About
  • Premium Domains
  • Let’s Talk
Actively Media

Alpha-2, Greater Noida
INDIA 201310

hello @ activelymedia.com
5.0 stars - based on 17 reviews
© 2025 Actively Media, All Rights Reserved. Terms & Privacy