What are Herflang Tags and How to Use Them on your Web Page

Programming a web page is very complex and there is a huge amount of details that you can escape, that individually may not have a great effect on the functioning and SEO of your page, but if they add up the impact can be remarkable. And even without adding it, in such a competitive environment as the Internet, any detail can make you upload many posts in the eyes of Google. Today I want to talk about the herflang labels.

What are they for? Basically what they do is indicate to Google in what language is that particular page. In this way they can redirect users depending on their location or browser configuration, the two main references they take when selecting the language.

When should I use the herflang tags?

Its use is mainly recommended when your website is multilanguage. Imagine you have a restaurant and you have the website in Spanish, English and French, in which case you should take them into account.

Google recommends the use of the tags rel = “alternate” hreflang = “xx if:

Some parts of the page template may be in different languages ​​and only the template must be translated. For example, a forum or a review page, where each user can use a different language, but the main page will always be the same.

  • When there may be confusions between languages ​​or dialects very similar, such as American and British English.
  • When all the pages of your site are translated into several languages.
  • Where should they be placed?

Google recommends that they must be placed under the <head> heading, and in front of the rest of the link tags.

Common mistakes

Google also warns of some common mistakes that cause the label to run out:

  • Absence of confirmation links: If one page links to another, that other page must also link to the first. Otherwise, the search engine may not interpret the hreflang tags correctly.
  • Incorrect language codes: the codes that identify the language must be in the ISO 639-1 format and, optionally, the region in ISO 3166 Alpha 2 format to put an alternative URL. You can not specify only the region.

What impact does it have on SEO?

Google has never revealed its parameters when it comes to positioning web pages beyond certain recommendations, all we know is basically based on trial and error.

However, considering that Google has a page dedicated to the use of these tags, it seems difficult that it has no impact. Search engines measure a large number of elements, from the famous keywords and the length of the content to the order of your site and the loading speed.

Labels may not have a huge impact, but it’s one of those details that helps a lot when added together.

It is the importance of attention to detail.