Yusuf Bhana
Yusuf Bhana 14 October 2015
Categories Search Marketing

What Is The Hreflang Tag? And Why Is It Important?

According to Google, it uses the rel="alternate" hreflang="x" attributes to serve the correct language or regional URL in search results.

According to Google, it uses the rel=”alternate” hreflang=”x” attributes to serve the correct language or regional URL in search results.

With just a few extra lines of HTML markup, Google and other major search engines will allow you to specify the languages and countries that pages on your international website are catered to.


The hreflang tag is an often overlooked element of website localisation and one that is likely to have an impact on a site’s SEO. And it’s not just small ecommerce businesses that neglect to add the tag to their international websites.


For instance, Gap, the American multinational clothing and accessories retailer, sells to over 200 territories and has it’s EU website translated into four languages for 25 different regions but has not implemented the hreflang tag. Similarly, American Apparel has a website available in over 10 languages and has also neglected to include the hreflang tag for alternate language pages.

What Is hreflang?

The hreflang tag (also referred to as rel=”alternate” hreflang=”x”) tells search engines which country a specific page is intended for, which language it is written in and provides alternatives for the same page intended for other countries and languages. It can also provide information on the default country and language if the search engine is unable to decide which version to present (or if the page is not targeting a specific country or language).

It is one of the many ways that Google determines the content that is presented to users in various different territories. Google uses several other elements to determine a website’s targeted country and language, such as the site’s domain, if it using a ccTLD (country code top level domain) such as or for example, the Geo-targeting setting in the Search Console, the IP address of the web server, physical addresses, telephone numbers and currencies on pages and even the geographical spread of links from other websites and their individual IP addresses, ccTLDs etc.

This signal will help Google increase the relevance of content it serves to users in various regions, helping reduce bounce rates, increase dwell time and, ultimately, boost conversion rates.

Hreflang tags are important because they help alleviate some of the concerns that site owners face with the publication of duplicate content. For instance, if a page on a website exists as a duplicate (or near duplicate) in English for the UK, US and Canada then providing hreflang annotations to inform search engines that these pages are not duplicates but intended for different audiences goes a long way to preventing a duplicate content penalty. For this reason, contrary to popular belief, Google recommends not using the hreflang tag along with the rel=“canonical” tag together across different language or country versions.

What Does The hreflang Tag Look Like?

Here is an example of the hreflang tag implementation for the French homepage on

<link” rel=”alternate”hreflang=”fr-FR” href=”” />


The Markup Explained:href_image


  1. The rel=”alternate” markup tells Google to consider all of these pages as alternate versions of the same page
  2. The first two letters after hreflang indicate the language
  3. The last two letters indicate the country
  4. The URL indicates which page the tag applies to – in this case, the French homepage.


Download a PDF with ALL the country and language code variations


Where To Insert The hreflang Tag

The most common place to insert the hreflang tag is within the tags in the site’s HTML header using the markup explained above. But they can also be specified in a sitemap if a site targets users in many different languages or countries. Here’s an example of what that might look like:

Remember you will also need to include every URL for a set of alternatives. Failure to do so can result in “no return tag” errors being presented in Google Search Console and the correct pages not being presented to international users in search results.


Also, there’s no need to combine implementation methods. So if you’re already specifying hreflang in the site’s section, then there’s no need to do the same in a sitemap.

x-default hreflang


This tag is used to specify the default page when no other page is better suited. For example, it would be the page Google tries to show Spanish-speaking searchers worldwide or English-speaking searchers in Canada on

Another use for x-default is for home pages that are not targeted at a specific language, but allow users to select their preferred country and language instead.

This Is What It Looks Like:

<link” rel=”alternate”hreflang=”x-default”  href=”” />


Hreflang Tag Examples On Popular Sites

Here are some examples of websites that use different international domain structures and the use of hreflang tags on their pages.

International domain strategy: subdomains (e.g.

International domain strategy: mixed – subfolders and separate domains
hreflang: rel=”alternatehreflang=”fr-FRhref=””/> rel=”alternatehreflang=”it-IThref=””/>

International domain strategy: separate domains

International domain strategy: URL parameters


You’ll noticed that ASOS uses a mixed domain structure with some regions such as Australia using a ccTLD and others such as the USA on a subdomain. This allows the brand to locate their US and Australian web servers servers closer to their target market to improve page load times while still taking advantage of the benefits that hreflang provides – which is a very smart move.


It’s worth noting that while both Google and Yandex recognise the hreflang tag, Bing uses the http-equiv=“content-language” meta tag. It acts in the same way and is also placed in the section of your pages.




Whichever domain or URL structure you choose, it’s important to signal to search engines that the language variations of your site aren’t duplicates and provide suggestions on the pages you’d like to rank for alternative languages in different countries. This allows for better control over the pages that you’d like to rank in your target market.


Implementing the hreflang tag into your site’s HTML or XML sitemap is a quick way of helping Google and other search engines to display the most relevant pages in the target user’s language in search results.


Original Article


Read More On Digital Doughnut

Please login or register to add a comment.

Contribute Now!

Loving our articles? Do you have an insightful post that you want to shout about? Well, you've come to the right place! We are always looking for fresh Doughnuts to be a part of our community.

Popular Articles

See all
4 Important Digital Marketing Channels You Should Know About

4 Important Digital Marketing Channels You Should Know About

It goes without saying that a company can't do without digital marketing in today's world.

Digital Doughnut Contributor
Digital Doughnut Contributor 5 November 2014
Read more
Google Analytics in Only Three Numbers

Google Analytics in Only Three Numbers

Financial advisors and other professionals can decipher a lot of information from Google Analytics with three simple categories.

Marina Howell
Marina Howell 17 October 2016
Read more
How to Optimize Your Confirmation Email Design and Make It Bring You More Sales

How to Optimize Your Confirmation Email Design and Make It Bring You More Sales

Email marketing is not just about newsletters! Transactional and confirmation emails shouldn’t be neglected when it comes to design and content. An exceptional confirmation email can help you nail another purchase in minutes.

Roland Pokornyik
Roland Pokornyik 17 October 2016
Read more
Get a Complete View of Your Customer Journey in 5 Easy Steps

Get a Complete View of Your Customer Journey in 5 Easy Steps

Here's how you can get a complete view of your customer journey so that your email campaigns continue to win new customers.

Sophia Skinbjerg
Sophia Skinbjerg 18 October 2016
Read more
How to Solve the Two Biggest Challenges of Social Media Marketing

How to Solve the Two Biggest Challenges of Social Media Marketing

Most small businesses spend more than 6 hours per week on social media marketing and more than one-third post at least once per day. Along with finding the time, the other biggest challenge professionals face is finding the right content to post. If you’re experiencing these challenges, keep reading because we’re going to help you solve them.

Melissa Darcey
Melissa Darcey 20 October 2016
Read more