How to Declare Language in Blogger Template

Declaring the default language of a website is very important for SEO. This helps search engines know about the website language and they don't have to waste time detecting website language. If you want to make your blog / website SEO friendly then this is a must do. 

declare language html blogger templateIf you are on WordPress then you'll have built-in functionality for declaring website language but blogger users aren't that lucky. If you have a blogger blog then you'll have to manually declare language by adding an HTML code inside your blog template. Today I'll show you How to do that.

Also See:  
5 Things to Avoid for High Google Page Ranking.
10 Best Custom 404 Error Pages for Blogger.
 

How to Declare Language in Blogger Platform

The Lang attribute really helps search engines detect a websites language, So if your website is international or of some other language then you must declare it. Follow the below steps for declaring language in blogger.

Step 1: From Blogger Dashboard, Go to Template > Edit HTML. (It is always recommended that you back up your template first)

Step 2: Search for <html 

You will find a code similar to this 
<html expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml'
Now just replace <html with the code given below.
<html lang="en-US" xml:lang="en-US"
It will look something like this
<html lang="en-US" xml:lang="en-US" expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml'
Step 3: Save Template

By default the language attribute is set to US-English (en-US) but if your website is of some other language then you can change en-US with the ISO code of your language.

Language ISO Codes

If your website is of some other language then go to the link given below, It has a complete list of languages and their ISO codes. Just replace en-US with your language code and Save Template.


So now you'll be able to declare your blog language using the tutorial given  above. I hope this article was helpful, Please leave your comments below.

Share on Google Plus Print Friendly Version of this pagePrint page Get a PDF version of this webpageDownload as PDF

About Jimmie Luthra

Jimmie Luthra is founder of The-Area51.com. He is a Cadet in Merchant Navy and a Part time Blogger. He is 21 and lives in Mumbai. You can Follow him on Twitter, Facebook and Google+
    Blogger Comment
    Facebook Comment

2 comments:

  1. great post. Really helpful for my blog http://www.tipsoftech.com

    ReplyDelete