When a website offers content in multiple languages or target at different regions, the hreflang attribute is us to tell Google the relationship between different versions of a page, i.e. the URL equivalencies.
The hreflang attribute is plac in
The <link> tag within the <head> section of a web page’s HTML. Each <link> tag specifies an alternative URL along with the corresponding language or region code. For example, specifying alternative versions of a page in Spanish, Catalan, and English:
Additionally, with this markup
We can indicate which URL language we show ios database by default (with x-default) to regions not cover (generally English).
What else should you know?
While the goal of providing alternative versions of a page in different languages or target at different regions is to improve user experience and increase the relevance of the page in search results for international audiences, it is still a common mistakes to avoid with personalized marketing signal (not a particularly strong one).
Google may say ignore if it sees that
The versions are 100% identical and that one of the two versions receives more links or is more relevant. Here the advice is to make sure that they are exact replicas and that there are variations in the content, however small they may be.
Make sure URL mappings are
Well mapp out in your database. If this is a start-up web project, having it well mapp out from the start will save you a lot of time later. Otherwise, it can happen (as has happen to many of our consultants) that simple tagging turns into a time-consuming project.
8. Canonical link.
Do you remember that we mention at the beginning that each URL is unique for spiders? Well, the canonical link (similar to the previous one) is a tool that tg data we can use in search engine optimization when solving the problem of duplicate content on the web.