Html web page lang language settings and reference

Source: Internet
Author: User
The lang attribute of HTML can be used for web pages or some web pages. This is helpful for search engines and browsers. This article describes how to configure and reference the lang language on the html webpage to the coders. For more information about coders, see. ISO code

The lang attribute of HTML can be used for web pages or some web pages. This is helpful for search engines and browsers.

According to W3C recommendation standards, you should passThe lang attribute in the tag declares the main language on each page, for example:

...

In XHTML, the following method is used:Declare the language in the tag:

...

ISO 639-1 language code

ISO 639-1 defines acronyms for various languages. You can use them in the lang and xml: lang attributes in HTML and XHTML.

Language ISO Code
Abkhazian AB
Afar Aa
Afrikaans Af
Albanian Sq
Amharic Am
Arabic Ar
Armenian Hy
Assamese As
Aymara Ay
Azerw.jani 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
Hausa Ha
Hawaiian
Hebrew He, iw
Hindi Hi
Hungarian Hu
Ibibio
Icelandic Is
Igbo
Indonesian Id, in
Interlingua Ia
Interlingue Ie
Inuktitut Iu
Inupiak Ik
Irish Ga
Italian It
Japan 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 (Afan, Galla) 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
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
Volapuk Vo
Welsh Cy
Wolof Wo
Xhosa Xh
Yi
Yiddish Yi, ji
Yoruba Yo
Zulu Zu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.