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=''
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=''
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.


About Jimmie Luthra

Jimmie Luthra is a Mariner, Tech enthusiast, Blogger and Gadget reviewer. He is fond of technology and is usually found playing with some piece of tech. He is also a Guitarist, Music lover & fitness freak.
    Blogger Comment
    Facebook Comment