Friday, May 25, 2018

Adding Hreflang Language Tag to Blogspot Blog


The language tag tells Google and other search engines the language of your blog. Google's webmaster recommends adding a language tag to your blog so that search engines can use your blog's hreflang tag to deliver search results to people searching for the language you've provided. So you can add a hreflang tag to your blogspot to set the language of your blog for Google and other search engines.

Add the following hreflang tag in the header section of your blog/site's template editor, i.e bellow <head> tag and above the closing head tag <head/>

<link rel="alternate" href="http://example.com" hreflang="en" />


Replace "example.com" with the URL of your blog and "en" hreflang tag with the language you want to use. Here are some of the language tags that you can use for other languages.

Href Language Tags


Additionally, if your blog is targeting a specific region, e.g  united states, then you can specify the region also in your hreflang tags by modifying it as shown below

<link rel="alternate" href="http://example.com" hreflang="en-us" />

us in the above code after the dash (-) represents united states.You can change the region by

Here is a list of region codes on Wikipedia.

Href Region codes



If your site is multilingual then you can use the following tag in the above code

hreflang="x" 
Share:

0 comments:

Post a Comment

Definition List

Unordered List

Support