Hreflang is designe for multilingual websites and its role is to show search engines the relationship between pages in different languages or between individual domains. Google uses this attribute to provide the correct regional or language URLs in SERPs base on the user’s country and language preferences. It sounds simple, but it is not simple – unfortunately, there is no universal procedure and hreflang implementation is individual for each website. hreflang syntax & implementation The correct notation of the hreflang attribute looks like this here is the absolute URL of another page.
This Part Specifies The Language
In this case en is the language in ISO – format and US is the optional country code in ISO – Alpha format. The hreflang attribute can be implemente in web pages in three different ways As an HTML link element in the HTML header quick and easy , in an HTTP header for non-HTML content, e.g. PDF or via an XML-Sitemap large sites with lots of URL USA Email List addresses . Links For the hreflang attribute to work properly, it is essential that each of its lines linking to another page has the same hreflang code on each of them. Incorrect language codes All hreflang attributes must use the ISO – format for all language codes. For example, a common mistake is to use uk for Unit Kingdom instead of.
Optionally With The Country Url Code
For the Czech Republic instead of the correct cs code. Incorrect or missing canonical tags You can use canonical tags to tell Google and other search engines which page you prefer for indexing. If the canonical tag refers to a page other than the one list BDV Directory in the hreflang attribute, or is completely missing, it is likely that the pages in question will be index incorrectly, or not index at all. Missing or incorrect x-default The use of x-default is a frequently debate topic in SEO. X-default tells Google where to send traffic when none of the hreflang attribute is use.