Do you want to declare a Default Language of your website? When a person is creating an international website, then it is significant to describe its language either using HTML or XML Attributions. On the other hand, it also helps in Search Engine Optimization because by declaring a Language, Search engine Algorithms won’t have to spend much time in studying and detecting its language manually. Though most of the popular Blogging platforms have built-in language declaration functionality, but Blogger Platform is not a robust platform. Therefore, we have to manage things manually by adding XML or HTML Language attributions. In this article, we will be learning how a person can declare language of a website with the help of HTML Coding.
Significant Tips While Declaring Language of a Website:
There are lots of misconceptions in the minds of webmasters that How, when and where should they enter the HTML coding to define their website’s language. Fortunately, W3.ORG has provided detailed information about the whole process. Consider the following tips.
- Define the lang attribution in each and every page of a website.
- Specify the Lang code in the URL as well while declaring language.
- Always utilize lang or xml:lang attribution to define language of a website.
- Do not add the lang attribution in the between <body></body> tags.
How To Declare Language of Website with HTML?
The main idea behind declaring language of a website is to provide friendly experience to different browsers and Search engines. If a person is thinking, that after defining Lang attributions his SEO will be improve then he is committing a mistake because it has low Impact on search engine optimization. Furthermore, it will increase the crawling rate because crawlers will be able to fetch your content rather quickly. Follow the instructions mentioned below.
- According to the prescribed rules by W3C, it’s essential to place the Lang attributions inside the <html> tag. Consider the Following coding.
<html lang="en">
...
</html>
In XML, the coding is bit different but it must be placed inside the <html> Tag. Just like the following example.
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
...
</html>
Declaring Language in Blogger Platform:
- Go To Blogger.com >> Template >> Edit HTML >> Proceed.
- In Template, search for <html and just next to it paste the following coding.
lang="en-US" xml:lang="en-US"
- After pasting the above coding in the template, it would somewhat look like the following coding. Once done, Save the template by pressing Save template button.
<html lang="en-US" xml:lang="en-US" b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
ISO 639-1 Language Codes:
ISO 639-1 is an abbreviation
which is used to classify all known languages. Each language has its unique two
or three letter. Following is the list of language along with their short codes
that can be used as either HTML or XML Lang attributions.
Language | ISO Code |
---|---|
Abkhazian | ab |
Afar | aa |
Afrikaans | af |
Albanian | sq |
Amharic | am |
Arabic | ar |
Aragonese | an |
Armenian | hy |
Assamese | as |
Aymara | ay |
Azerbaijani | az |
Bashkir | ba |
Basque | eu |
Bengali (Bangla) | bn |
Bhutani | dz |
Bihari | bh |
Bislama | bi |
Breton | br |
Bulgarian | bg |
Burmese | my |
Byelorussian (Belarusian) | be |
Cambodian | km |
Catalan | ca |
Cherokee | |
Chewa | |
Chinese (Simplified) | zh |
Chinese (Traditional) | zh |
Corsican | co |
Croatian | hr |
Czech | cs |
Danish | da |
Divehi | |
Dutch | nl |
Edo | |
English | en |
Esperanto | eo |
Estonian | et |
Faeroese | fo |
Farsi | fa |
Fiji | fj |
Finnish | fi |
Flemish | |
French | fr |
Frisian | fy |
Fulfulde | |
Galician | gl |
Gaelic (Scottish) | gd |
Gaelic (Manx) | gv |
Georgian | ka |
German | de |
Greek | el |
Greenlandic | kl |
Guarani | gn |
Gujarati | gu |
Haitian Creole | ht |
Hausa | ha |
Hawaiian | |
Hebrew | he, iw |
Hindi | hi |
Hungarian | hu |
Ibibio | |
Icelandic | is |
Ido | io |
Igbo | |
Indonesian | id, in |
Interlingua | ia |
Interlingue | ie |
Inuktitut | iu |
Inupiak | ik |
Irish | ga |
Italian | it |
Japanese | ja |
Javanese | jv |
Kannada | kn |
Kanuri | |
Kashmiri | ks |
Kazakh | kk |
Kinyarwanda (Ruanda) | rw |
Kirghiz | ky |
Kirundi (Rundi) | rn |
Konkani | |
Korean | ko |
Kurdish | ku |
Laothian | lo |
Latin | la |
Latvian (Lettish) | lv |
Limburgish ( Limburger) | li |
Lingala | ln |
Lithuanian | lt |
Macedonian | mk |
Malagasy | mg |
Malay | ms |
Malayalam | ml |
Maltese | mt |
Maori | mi |
Marathi | mr |
Moldavian | mo |
Mongolian | mn |
Nauru | na |
Nepali | ne |
Norwegian | no |
Occitan | oc |
Oriya | or |
Oromo (Afaan Oromo) | om |
Papiamentu | |
Pashto (Pushto) | ps |
Polish | pl |
Portuguese | pt |
Punjabi | pa |
Quechua | qu |
Rhaeto-Romance | rm |
Romanian | ro |
Russian | ru |
Sami (Lappish) | |
Samoan | sm |
Sangro | sg |
Sanskrit | sa |
Serbian | sr |
Serbo-Croatian | sh |
Sesotho | st |
Setswana | tn |
Shona | sn |
Sichuan Yi | ii |
Sindhi | sd |
Sinhalese | si |
Siswati | ss |
Slovak | sk |
Slovenian | sl |
Somali | so |
Spanish | es |
Sundanese | su |
Swahili (Kiswahili) | sw |
Swedish | sv |
Syriac | |
Tagalog | tl |
Tajik | tg |
Tamazight | |
Tamil | ta |
Tatar | tt |
Telugu | te |
Thai | th |
Tibetan | bo |
Tigrinya | ti |
Tonga | to |
Tsonga | ts |
Turkish | tr |
Turkmen | tk |
Twi | tw |
Uighur | ug |
Ukrainian | uk |
Urdu | ur |
Uzbek | uz |
Venda | |
Vietnamese | vi |
Volapük | vo |
Wallon | wa |
Welsh | cy |
Wolof | wo |
Xhosa | xh |
Yi | |
Yiddish | yi, ji |
Yoruba | yo |
Zulu | zu |
From the Editor’s Desk:
Now, just think that by doing
a small tweak in our template search engines can easily crawl the website. We
have implemented the tutorial on this blog and it is working quite brilliantly.
What are your thoughts about this tutorial? Take a lot care of yourself till
then, Peace, Blessings and Happy Learning.
![](https://1.bp.blogspot.com/-YbyxTgCyYdA/UQEPO-PRihI/AAAAAAAAMeQ/TbvP4mye2N8/s1600/MBL-Official-LOGO.png)
The Editorial Team of MyBloggerLab consists of a group of Professional Blogger geeks Led by Syed Faizan Ali (Founder of MyBloggerLab).
13 comments
Dude its not a widget. So We can't add a Demo to this tutorial. It is a Small HTML Tip that allows you to define the language of your site that which language you are using in your Articles. For example we are using English then we will use lang="en-US" to help search engine and Browsers. Hope that Helps. Peace
Well Dude, its just a simple LANG HTML Tip. It can't be shown in a whole new demo. Hope that answers your question.
bro nyc post but you added some changes in header and sidebar but bro the old look is better ! :) anyway thnx for this :)
please tell how to label images with My Blogger Lab tag!
hi bro one info ! template like your site check :(
main link: http://lordhtml.blogspot.in/2012/11/laboratory-thesis-seo-blogger-template.html
demo : http://laboratory-theme.blogspot.in/
Yay..!! Thank you for this code and tutorials. I already implemented this on my Blog.
Hey..!! Syed..!!
How is it differ from this code "<meta content='english' name='language'/>"?
The Code Seems to be Fine. You can also use it But I Would Recommend you to Use Short code EN Instead of Full "ENGLISH" Hope that Helps. Peace
Thank you Syed for the tips..
I think WAJAHAT AHMED is being funny !
DO Both , the meta Attribute and this , in the tutorial . Do both to fully declare the Language !
Excellent tutorial Admin !
Wahh !
Great tips, thank you very much!
Post a Comment
We’re eager to see your comment. However, Please Keep in mind that all comments are moderated manually by our human reviewers according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and evocative conversation.