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
7 reasons why social media marketing is important for your business

7 reasons why social media marketing is important for your business

Social media is quickly becoming one of the most important aspects of digital marketing, which provides incredible benefits that help reach millions of customers worldwide. And if you are not applying this profitable...

Sharron Nelson
Sharron Nelson 6 February 2018
Read more
Top 10 Skills to Become a Rockstar in Digital Marketing

Top 10 Skills to Become a Rockstar in Digital Marketing

Technology is continuously evolving, prompting marketers and entrepreneurs to dive into digital marketing to increase brand awareness, reach their target market, and ultimately drive sales and profit. 

Jessica Andriani
Jessica Andriani 7 September 2018
Read more
Top 10 B2B Platforms to Help your Business Grow Worldwide

Top 10 B2B Platforms to Help your Business Grow Worldwide

Although the trend of a Business to Business portal is not new but the evolution of technology has indeed changed the way they function. Additional digital trading features and branding has taken the place of...

Salman Sharif
Salman Sharif 7 July 2017
Read more
Top Tools to Strengthen Your Online Reputation Management in 2021

Top Tools to Strengthen Your Online Reputation Management in 2021

Online reputation management involves optimizing the perceived reputation of your brand online. It involves monitoring and improving how your business is viewed online by analyzing the perceived notion of your...

Priya Kumari
Priya Kumari 7 April 2021
Read more
Roughly a Third of Consumers Globally Engaged with Social Media Ads More Amid the Pandemic

Roughly a Third of Consumers Globally Engaged with Social Media Ads More Amid the Pandemic

Social media usage and engagement has changed drastically in the age of Covid-19, with 30% of consumers globally saying they paid more attention or interacted more with social media ads during this time. This can be...

Julian Newby
Julian Newby 15 April 2021
Read more