Declaring the default language of a website plays vital role for SEO. It helps search engines to 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.
If you are on WordPress then you'll have built-in functionality for declaring website language but the user of blogspot/blogger are not so lucky. The people using blogger platform have to manually declare language by adding an HTML code inside your blog template. Today I'll show the easy way to do that.
Easy Way to Declare Language in Blogger Platform
The Lang attribute really helps search engines detect a websites language, So if your website is with any regional language or international then you have to declare it. Follow the step by step instruction for declaring language in blogger.
Step 1: From Blogger Dashboard, Go to Template > Edit HTML. (keep back up your template before edit)
Step 2: Search for <html
You will find a code similar to this (it may vary by template or by more or less editing)
Fig 01: Code may appear like this image |
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html> <html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml'
Now just copy this code given below.
lang="en-US" xml:lang="en-US"
and paste it in the <html> tag as shown in the Fig: 02
Fig 02: Insert code after <html |
It will look something like this
1 2 3 4 5
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html> <html b:version='2' class='v2' lang="en-US" xml:lang="en-US" expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml'
Step 3: Save Template
US-English (en-US) is the default language attribute but if your website is of some other language then you can change en-US with the ISO code of your language.
ISO Codes for Language
If your website is of some other language then go to the link given below. There is a complete list of languages with respective ISO codes. Just replace en-US with your desired language code and Save Template.
ISO 639-1 Language Code List
So now you'll be easily able to declare your blog language using the tutorial given above. If you think this tutorial is helpful, Please leave your comments below.