How To Implement And Use Hreflang
Webmasters usually use tag hreflang to clarify the lingual and geographical targeting of a website; this allows visitors to see any page in their mother tongue.
What is hreflang aimed for?
Tag hreflang prevents merging of the pages while indexing and allows the searcher to identify the needed version of the content conforming to the region of the user.

When is it needed?
How to implement hreflang?
There are three ways to implement hreflang:
Using HTML-tags
<link rel="alternate" hreflang="uk" href="https://serpstat.com/uk/">
<link rel="alternate" hreflang="ru" href="https://serpstat.com/ru/">
<link rel="alternate" hreflang="en" href="https://serpstat.com/">

<link rel=”alternate” hreflang="xx-YY" href="URL" />
- xx — language;
- YY — region;
- URL — link to the alternative page.
Using sitemap files
<url>
<loc>http://domain.com/</loc>
<xhtml:link rel="alternate" hreflang="en-GB" href="URL" />
<xhtml:link rel="alternate" hreflang="es" href="URL" />
<xhtml:link rel="alternate" hreflang="x-default" href="URL" />
<xhtml:link rel="alternate" hreflang="en" href="URL" />
</url>
Using HTTP headers
Link: <URL/document.pdf/>; rel="alternate"; hreflang="en"
Link: <URL/document.pdf/>; rel="alternate"; hreflang="en-GB"
Link: <URL/document.pdf/>; rel="alternate"; hreflang="es"
Link: <URL/document.pdf/>; rel="alternate"; hreflang="x-default"
Tag hreflang x-default
Conclusion
This tag also indicates to search engines the existence of the same pages but in other languages. It helps them to be indexed and shown to the users while surfing the net.
This article is a part of Serpstat Checklist tool

Try Checklist now |
Learn how to get the most out of Serpstat
Want to get a personal demo, trial period or bunch of successful use cases?
Send a request and our expert will contact you ;)
Cases, lifehacks, researches and useful articles
Don’t you have time to follow the news? No worries!
Our editor Stacy will choose articles that will definitely help you with your work. Join our cozy community :)
By clicking the button, you agree to our privacy policy.
Comments