It's vital to declare the language you use in your website blog posts and that is declared by several ISO language code tags written in HTML that know the language you use in writing posts so that your traffic can be from the right source of related language people. To declare the language in HTML we use two-letter language code or three letter. Some websites go to an extent of using an XML language tag.
The website crawlers from search engines use the language tags to determine the language used in writing of the posts. If you have used the language tags declaring English language from USA then the English used in the post should not have British English version and thus any British English words are considered as spelling mistakes.
How To Use Href Language Code Tags In A Website.
A website uses the abbreviation of the language tags from the full name of the language and the origin. In the meta HTML tags of href language declaration, the language used is written as attached bellow.
Then when using xml to reffer to the declaration of the language tag then its assighned as bellow.<html lang="en">
...
</html>
The Short Codes are derived from language and thats what we declare as ISO value and the contry language . When your website has errors in language declaration , the iso language value is not declared for the page showing errors. To know whether your website has language errors, the google search console will inform you that you have not specified your language in code. The contry language code ISO are derived as follows.<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
...
</html>
Language Codes Table
af Afrikaans sq Albanian
ar-sa Arabic (Saudi Arabia) ar-iq Arabic (Iraq)
ar-eg Arabic (Egypt) ar-ly Arabic (Libya)
ar-dz Arabic (Algeria) ar-ma Arabic (Morocco)
ar-tn Arabic (Tunisia) ar-om Arabic (Oman)
ar-ye Arabic (Yemen) ar-sy Arabic (Syria)
ar-jo Arabic (Jordan) ar-lb Arabic (Lebanon)
ar-kw Arabic (Kuwait) ar-ae Arabic (U.A.E.)
ar-bh Arabic (Bahrain) ar-qa Arabic (Qatar)
eu Basque (Basque) bg Bulgarian
be Belarusian ca Catalan
zh-tw Chinese (Taiwan) zh-cn Chinese (PRC)
zh-hk Chinese (Hong Kong SAR) zh-sg Chinese (Singapore)
hr Croatian cs Czech
da Danish nl Dutch (Standard)
nl-be Dutch (Belgium) en English
en-us English (United States) en-gb English (United Kingdom)
en-au English (Australia) en-ca English (Canada)
en-nz English (New Zealand) en-ie English (Ireland)
en-za English (South Africa) en-jm English (Jamaica)
en English (Caribbean) en-bz English (Belize)
en-tt English (Trinidad) et Estonian
fo Faeroese fa Farsi
fi Finnish fr French (Standard)
fr-be French (Belgium) fr-ca French (Canada)
fr-ch French (Switzerland) fr-lu French (Luxembourg)
gd Gaelic (Scotland) ga Irish
de German (Standard) de-ch German (Switzerland)
de-at German (Austria) de-lu German (Luxembourg)
de-li German (Liechtenstein) el Greek
he Hebrew hi Hindi
hu Hungarian is Icelandic
id Indonesian it Italian (Standard)
it-ch Italian (Switzerland) ja Japanese
ko Korean ko Korean (Johab)
lv Latvian lt Lithuanian
mk Macedonian (FYROM) ms Malaysian
mt Maltese no Norwegian (Bokmal)
no Norwegian (Nynorsk) pl Polish
pt-br Portuguese (Brazil) pt Portuguese (Portugal)
rm Rhaeto-Romanic ro Romanian
ro-mo Romanian (Republic of Moldova) ru Russian
ru-mo Russian (Republic of Moldova) sz Sami (Lappish)
sr Serbian (Cyrillic) sr Serbian (Latin)
sk Slovak sl Slovenian
sb Sorbian es Spanish (Spain)
es-mx Spanish (Mexico) es-gt Spanish (Guatemala)
es-cr Spanish (Costa Rica) es-pa Spanish (Panama)
es-do Spanish (Dominican Republic) es-ve Spanish (Venezuela)
es-co Spanish (Colombia) es-pe Spanish (Peru)
es-ar Spanish (Argentina) es-ec Spanish (Ecuador)
es-cl Spanish (Chile) es-uy Spanish (Uruguay)
es-py Spanish (Paraguay) es-bo Spanish (Bolivia)
es-sv Spanish (El Salvador) es-hn Spanish (Honduras)
es-ni Spanish (Nicaragua) es-pr Spanish (Puerto Rico)
sx Sutu sv Swedish
sv-fi Swedish (Finland) th Thai
ts Tsonga tn Tswana
tr Turkish uk Ukrainian
ur Urdu ve Venda
vi Vietnamese xh Xhosa
ji Yiddish zu Zulu
Language ISO Code HTML Tags
- Abkhazian ab
- Afar aa
- Afrikaans af
- Akan ak
- Albanian sq
- Amharic am
- Arabic ar
- Aragonese an
- Armenian hy
- Assamese as
- Avaric av
- Avestan ae
- Aymara ay
- Azerbaijani az
- Bambara bm
- Bashkir ba
- Basque eu
- Belarusian be
- Bengali (Bangla) bn
- Bihari bh
- Bislama bi
- Bosnian bs
- Breton br
- Bulgarian bg
- Burmese my
- Catalan ca
- Chamorro ch
- Chechen ce
- Chichewa, Chewa, Nyanja ny
- Chinese zh
- Chinese (Simplified) zh-Hans
- Chinese (Traditional) zh-Hant
- Chuvash cv
- Cornish kw
- Corsican co
- Cree cr
- Croatian hr
- Czech cs
- Danish da
- Divehi, Dhivehi, Maldivian dv
- Dutch nl
- Dzongkha dz
- English en
- Esperanto eo
- Estonian et
- Ewe ee
- Faroese fo
- Fijian fj
- Finnish fi
- French fr
- Fula, Fulah, Pulaar, Pular ff
- 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
- Hebrew he
- Herero hz
- Hindi hi
- Hiri Motu ho
- Hungarian hu
- Icelandic is
- Ido io
- Igbo ig
- Indonesian id, in
- Interlingua ia
- Interlingue ie
- Inuktitut iu
- Inupiak ik
- Irish ga
- Italian it
- Japanese ja
- Javanese jv
- Kalaallisut, Greenlandic kl
- Kannada kn
- Kanuri kr
- Kashmiri ks
- Kazakh kk
- Khmer km
- Kikuyu ki
- Kinyarwanda (Rwanda) rw
- Kirundi rn
- Kyrgyz ky
- Komi kv
- Kongo kg
- Korean ko
- Kurdish ku
- Kwanyama kj
- Lao lo
- Latin la
- Latvian (Lettish) lv
- Limburgish ( Limburger) li
- Lingala ln
- Lithuanian lt
- Luga-Katanga lu
- Luganda, Ganda lg
- Luxembourgish lb
- Manx gv
- Macedonian mk
- Malagasy mg
- Malay ms
- Malayalam ml
- Maltese mt
- Maori mi
- Marathi mr
- Marshallese mh
- Moldavian mo
- Mongolian mn
- Nauru na
- Navajo nv
- Ndonga ng
- Northern Ndebele nd
- Nepali ne
- Norwegian no
- Norwegian bokmål nb
- Norwegian nynorsk nn
- Nuosu ii
- Occitan oc
- Ojibwe oj
- Old Church Slavonic, Old Bulgarian cu
- Oriya or
- Oromo (Afaan Oromo) om
- Ossetian os
- Pāli pi
- Pashto, Pushto ps
- Persian (Farsi) fa
- Polish pl
- Portuguese pt
- Punjabi (Eastern) pa
- Quechua qu
- Romansh rm
- Romanian ro
- Russian ru
- Sami se
- Samoan sm
- Sango 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
- Southern Ndebele nr
- Spanish es
- Sundanese su
- Swahili (Kiswahili) sw
- Swati ss
- Swedish sv
- Tagalog tl
- Tahitian ty
- Tajik tg
- Tamil ta
- Tatar tt
- Telugu te
- Thai th
- Tibetan bo
- Tigrinya ti
- Tonga to
- Tsonga ts
- Turkish tr
- Turkmen tk
- Twi tw
- Uyghur ug
- Ukrainian uk
- Urdu ur
- Uzbek uz
- Venda ve
- Vietnamese vi
- Volapük vo
- Wallon wa
- Welsh cy
- Wolof wo
- Western Frisian fy
- Xhosa xh
- Yiddish yi, ji
- Yoruba yo
- Zhuang, Chuang za
- Zulu zu
<link rel="alternate" href="http://example.com" hreflang="en" />For WordPress websites it depend with the making of the theme template and if you are the developer its vital you use the language in the HTML value at the start of the website code. If you already have a created website and you ad the installation into self hosted wordpress website then you have to change language values in settings. Customization of the language values in blogger is easy.
Check the example bellow.