How to Add “lang” Attribute to a 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.
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.
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" xml:lang="en"
Now 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
Congratulation! you have done it successfully.
Final Word
It is a very useful tag to improve your SEO score. When you crawl your website by any SEO tool it will show you website language.