www.RickBull.com > tutorials > HTML > Useful Information
Jump to: Contents | Language Codes | Media Types | Entities | Countries | Colours | Time-Zones | Sever Codes | User-Agent Strings

Language Codes

This page lists the two-letter language codes that can be used in HTML (amongst other things) for the lang attribute. The reference article for this was http://xml.coverpages.org/iso639a.html, please visit there for a more in depth-explination, as well as more groupings of these codes. Also visit http://www.w3.org/TR/html401/struct/dirlang.html#h-8.1 for an explination of how to implement language codes in your HTML documents.

Two-Letter Language Codes
Language/Name Two-Letter Code
Abkhazianab
Afan (Oromo)om
Afaraa
Afrikaansaf
Albaniansq
Amharic am
Arabicar
Armenianhy
Assameseas
Aymaraay
Azerbaijaniaz
Bashkirba
Basqueeu
Bengali/Banglabn
Bhutanidz
Biharibh
Bislamabi
Bretonbr
Bulgarianbg
Burmesemy
Byelorussianbe
Cambodiankm
Catalanca
Chinesezh
Corsicanco
Croatianhr
Czechcs
Danishda
Dutchnl
Englishen
Esperantoeo
Estonianet
Faroesefo
Fijifj
Finnishfi
Frenchfr
Frisianfy
Galiciangl
Georgianka
Germande
Greekel
Greenlandickl
Guaranign
Gujaratigu
Hausaha
Hebrewhe
Hindihi
Hungarianhu
Icelandicis
Indonesianid
Interlinguaia
Interlingueie
Inuktitutiu
Inupiakik
Irishga
Italianit
Japaneseja
Javanesejv
Kannadakn
Kashmiriks
Kazakhkk
Kinyarwandarw
Kirghizky
Kurundirn
Koreanko
Kurdishku
Laothianlo
Latinla
Latvian/lettishlv
Lingalaln
Lithuanianlt
Macedonianmk
Malagasymg
Malayms
Malayalamml
Maltesemt
Maorimi
Marathimr
Moldavianmo
Mongolianmn
Nauruna
Nepaline
Norwegianno
Occitanoc
Oriyaor
Pashto/Pushtops
Persian (Farsi)fa
Polishpl
Portuguesept
Punjabipa
Quechuaqu
Rhaeto-Romancerm
Romanianro
Russianru
Samoansm
Sanghosg
Sanskritsa
Scots gaelicgd
Serbiansr
Serbo-croatiansh
Sesothost
Setswanatn
Shonasn
Sindhisd
Singhalesesi
Siswatiss
Slovaksk
Sloveniansl
Somaliso
Spanishes
Sundanesesu
Swahilisw
Swedishsv
Tagalogtl
Tajiktg
Tamilta
Tatartt
Telugu te
Thaith
Tibetanbo
Tigrinyati
Tongato
Tsongats
Turkishtr
Turkmentk
Twitw
Uigurug
Ukrainianuk
Urduur
Uzbekuz
Vietnamesevi
Volapukvo
Welshcy
Wolofwo
Xhosaxh
Yiddishyi
Yorubayo
Zhuangza
Zuluzu

Language Sub-Codes

Some languages also have different dialects that are spoken in some countries. The following table lists them, categorised by the language, and the country which speaks them. The source of most of this information is from the Mozilla browser, so credit goes to them.

Language and Country Sub-Codes
Country/Location Language/Country Sub-Code
Arabic
Algeriaar-dz
Bahrainar-bh
Egpytar-eg
Iraqar-iq
Jordanar-jo
Kuwaitar-kw
Lebanonar-lb
Libyaar-ly
Moroccoar-ma
Omanar-om
Qatarar-qa
Saudi Arabiaar-sa
Syriaar-sy
Tunisiaar-tn
United Aram Emiratesar-ae
Yemenar-ye
Chinese
Chinazh-cn
Hong Kongzh-hk
Singaporezh-sg
Taiwanzh-tw
Dutch
Belgiumnl-be
English
Australiaen-au
Belizeen-bz
Canadaen-ca
Irelanden-ie
Jamaicaen-jm
New Zealanden-nz
Philippinesen-ph
South Africaen-za
Trinidaden-tt
United Kingdomen-gb
United Statesen-us
Zimbabween-zw
French
Belguimfr-be
Canadafr-ca
Francefr-fr
Luxembourgfr-lu
Monacofr-mc
Switzerlandfr-ch
German
Austriade-at
Germanyde-de
Liechtensteinde-li
Luxembourgde-lu
Switzerlandde-ch
Italian
Switzerlandit-ch
Korean
North Koreako-kp
South Koreako-kr
Macedonian
Macedonia (former Yugoslavian Rebublic of)mk-mk
Portuguese
Brazilpt-br
Spanish
Argentinaes-ar
Boliviaes-bo
Chilees-cl
Colombiaes-co
Costa Ricaes-cr
Dominican Republices-do
Ecuadores-ec
El Salvadores-sv
Guatemalaes-gt
Hondurases-hn
Mexicoes-mx
Nicaraguaes-ni
Panamaes-pa
Paraguayes-py
Perues-pe
Perto Ricoes-pr
Spaines-es
Uruguayes-uy
Venezuelaes-ve
Swedish
Finlandsv-fi

All tutorials and content written by Rick Bull unless otherwise stated
Page's last update: Friday, 15th January 2010; 12:54:25 GMT +0000
Top of the page