Appendix G

Language Codes

Table G-1 shows the two-letter ISO 639 language codes that you can use to declare the language of a document in the lang attribute. It covers many of the world’s major languages.

Table G-1: ISO 639 Language Codes

LanguageISO Code
AbkhazianAB
Afan (Oromo)OM
AfarAA
AfrikaansAF
AlbanianSQ
AmharicAM
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
KoreanKO
KurdishKU
KurundiRN
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
Singhalese ...

Get Beginning HTML and CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.