2. Hreflang Tag
What is Hreflang Tag?
• Hreflang is an HTML attribute used to specify the
language and geographical targeting of a webpage.
• If you have multiple versions of the same page in
different languages, you can use the hreflang tag to
tell search engines like Google about these
variations. This helps them to serve the correct
version to their users.
• For example, if you have a version of a page in both
English and Spanish, you are able to designate which
page Google should display based on a user’s
geographic location and preferred language.
Hreflang Code Sample:
<link rel="alternate" href="http://example.com" hreflang="en-us" />
(This code tells Google that this English version of the page is
specifically directed to a U.S. audience.)
3. When to Use the Hreflang Tag?
The hreflang tag makes sense for any brand doing global SEO when:
• Hreflang gives your content a global SEO boost.
In addition to having content in multiple
languages, you can also have content targeted
towards variants of a single language.
• This allows you to localize your content for a
specific language and region.
4. Implementation of Hreflang Tag (Best Practice)
Ways to Implement Hreflang Tag (Best Practice)
1. HMTL link element in the header.
Add a link element to the HTML <head> section to point towards a
specific language:
<link rel="alternate" hreflang="es" href="http://es.example.com/" />
2. XML Sitemap.
Instead of using HTML markup, you can also submit language version
information in your sitemap.
HTML
XML Sitemap
5. Example: “Hreflang Tag” Implementation by Other Brands
Hreflang Tag Implementation by HTML Hreflang Tag Implementation by XML Sitemap
6. Example: “Hreflang Tag” Implementation by Other Brands
Websites with few international version of the website can implement hreflang tag using
HTML sitemap recommendation.