How To Web Design & Dev HTML Language Codes The ISO codes needed for the lang attribute in HTML Share Pin Email Print Spanish characters can be easily added to a website. nito100 / Getty Images Web Design & Dev HTML Basics CSS By Jeremy Girard Writer Author, educator, and director of marketing/head of web design and development at Envision Technology Advisors. our editorial process Twitter Jeremy Girard Updated October 10, 2019 At the start of your HTML page, you should define the language in which the page is written. This does not mean the coding language, like HTML or PHP, but rather the human language in which the text of the page is written. For instance, if your content is in the English language, you would use the following: HTML Code for English <html lang="en"> This "lang" attribute, which is added onto the opening HTML tag, tells the browser that the page itself is written in English. Different languages each have their own unique codes that you would use. Below is a list of these language codes that you can use in your "lang" attribute on the html tag to define the language of your HTML document. Name of Language ISO 639-1 Code Afar aa Abkhazian ab Afrikaans af Akan ak Albanian sq Amharic am Arabic ar Aragonese an Armenian hy Assamese as Avaric av Avestan ae Aymara ay Azerbaijani az Bashkir ba Bambara bm Basque eu Belarusian be Bengali bn Bihari bh Bislama bi Tibetan bo Bosnian bs Breton br Bulgarian bg Burmese my Catalan; Valencian ca Czech cs Chamorro ch Chechen ce Chinese zh Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic cu Chuvash cv Cornish kw Corsican co Cree cr Welsh cy Czech cs Danish da German de Divehi; Dhivehi; Maldivian dv Dutch; Flemish nl Dzongkha dz Greek, Modern (1453-) el English en Esperanto eo Estonian et Basque eu Ewe ee Faroese fo Persian fa Fijian fj Finnish fi French fr Western Frisian fy Fulah ff Georgian ka German de Gaelic; Scottish Gaelic gd Irish ga Galician gl Manx gv Greek, Modern (1453-) el Guarani gn Gujarati gu Haitian; Haitian Creole ht Hausa ha Hebrew he Herero hz Hindi hi Hiri Motu ho Croatian hr Hungarian hu Armenian hy Igbo ig Icelandic is Ido io Sichuan Yi ii Inuktitut iu Interlingue ie Interlingua (International Auxiliary Language Association) ia Indonesian id Inupiaq ik Icelandic is Italian it Javanese jv Japanese ja Kalaallisut; Greenlandic kl Kannada kn Kashmiri ks Georgian ka Kanuri kr Kazakh kk Central Khmer km Kikuyu; Gikuyu ki Kinyarwanda rw Kirghiz; Kyrgyz ky Komi kv Kongo kg Korean ko Kuanyama; Kwanyama kj Kurdish ku Lao lo Latin la Latvian lv Limburgan; Limburger; Limburgish li Lingala ln Lithuanian lt Luxembourgish; Letzeburgesch lb Luba-Katanga lu Ganda lg Macedonian mk Marshallese mh Malayalam ml Maori mi Marathi mr Malay ms Macedonian mk Malagasy mg Maltese mt Moldavian mo Mongolian mn Maori mi Malay ms Burmese my Nauru na Navajo; Navaho nv Ndebele, South; South Ndebele nr Ndebele, North; North Ndebele nd Ndonga ng Nepali ne Dutch; Flemish nl Norwegian Nynorsk; Nynorsk, Norwegian nn Bokmål, Norwegian; Norwegian Bokmål nb Norwegian no Chichewa; Chewa; Nyanja ny Occitan (post 1500); Provençal oc Ojibwa oj Oriya or Oromo om Ossetian; Ossetic os Panjabi; Punjabi pa Persian fa Pali pi Polish pl Portuguese pt Pushto ps Quechua qu Romansh rm Romanian ro Romanian ro Rundi rn Russian ru Sango sg Sanskrit sa Serbian sr Croatian hr Sinhala; Sinhalese si Slovak sk Slovak sk Slovenian sl Northern Sami se Samoan sm Shona sn Sindhi sd Somali so Sotho, Southern st Spanish; Castilian es Albanian sq Sardinian sc Serbian sr Swati ss Sundanese su Swahili sw Swedish sv Tahitian ty Tamil ta Tatar tt Telugu te Tajik tg Tagalog tl Thai th Tibetan bo Tigrinya ti Tonga (Tonga Islands) to Tswana tn Tsonga ts Turkmen tk Turkish tr Twi tw Uighur; Uyghur ug Ukrainian uk Urdu ur Uzbek uz Venda ve Vietnamese vi Volapük vo Welsh cy Walloon wa Wolof wo Xhosa xh Yiddish yi Yoruba yo Zhuang; Chuang za Chinese zh Zulu zu Characters for Specific Languages and Uses Czech, Slovak, and Slovenian | French | German | Greek | Hawaiian | Italian | Polish | Romanian | Russian (Cyrillic) | Spanish | Turkish Continue Reading How Do You Add Czech, Slovak, and Slovenian Characters to a Webpage? Why HTML Tags Are Your Friends Looking for the HTML Code for a Special Character? What Are Markup Languages? The Best Free Websites for Learning a New Language The Beginner's Guide to HTML Learn the HTML Codes for Spanish Language Characters Need to Add Turkish Language Characters to Your Site? How to Use Special Characters in HTML What Is CSS in Web Design and What Does It Look Like? Understanding the Difference Between HTML Tags and Elements Learn to Easily Add Attributes to Any HTML Element Trying to Learn a New Language? Download One of These Free Mobile Apps Type Characters With Circumflex Accent Marks It's Easy to Change Text Color on Your Website With HTML How Do You Type Characters With Umlaut Marks?