概述
根据 HTML5 规范:
强烈建议为 html 根元素指定 lang 属性,从而为文档设置正确的语言。这将有助于语音合成工具确定其所应该采用的发音,有助于翻译工具确定其翻译时所应遵守的规则等等。
如<html lang="zh-CN"> </html>
下面整理的是:按照字母顺序排列的语言(非语言代码)与核心使用lang属性来识别语言的元素包含在lang属性中。
语言 | 代码 |
---|---|
Abkhazian | AB |
Afar | AA |
Afrikaans | AF |
Albanian | SQ |
Amharic | AM |
Arabic | AR |
Armenian | HY |
Assamese | AS |
Aymara | AY |
Azerbaijani | AZ |
Bashkir | BA |
Basque | EU |
Bengali, Bangla | BN |
Bhutani | DZ |
Bihari | BH |
Bislama | BI |
Breton | BR |
Bulgarian | BG |
Burmese | MY |
Byelorussian | BE |
Cambodian | KM |
Catalan | CA |
Chinese | ZH |
Corsican | CO |
Croatian | HR |
Czech | CS |
Danish | DA |
Dutch | NL |
English, American | EN |
Esperanto | EO |
Estonian | ET |
Faeroese | FO |
Fiji | FJ |
Finnish | FI |
French | FR |
Frisian | FY |
Gaelic (Scots Gaelic) | GD |
Galician | GL |
Georgian | KA |
German | DE |
Greek | EL |
Greenlandic | KL |
Guarani | GN |
Gujarati | GU |
Hausa | HA |
Hebrew | IW |
Hindi | HI |
Hungarian | HU |
Icelandic | IS |
Indonesian | IN |
Interlingua | IA |
Interlingue | IE |
Inupiak | IK |
Irish | GA |
Italian | IT |
Japanese | JA |
Javanese | JW |
Kannada | KN |
Kashmiri | KS |
Kazakh | KK |
Kinyarwanda | RW |
Kirghiz | KY |
Kirundi | RN |
Korean | KO |
Kurdish | KU |
Laothian | LO |
Latin | LA |
Latvian, Lettish | LV |
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 | OM |
Pashto, Pushto | PS |
Persian | FA |
Polish | PL |
Portuguese | PT |
Punjabi | PA |
Quechua | QU |
Rhaeto-Romance | RM |
Romanian | RO |
Russian | RU |
Samoan | SM |
Sangro | SG |
Sanskrit | SA |
Serbian | SR |
Serbo-Croatian | SH |
Sesotho | ST |
Setswana | TN |
Shona | SN |
Sindhi | SD |
Singhalese | SI |
Siswati | SS |
Slovak | SK |
Slovenian | SL |
Somali | SO |
Spanish | ES |
Sudanese | SU |
Swahili | SW |
Swedish | SV |
Tagalog | TL |
Tajik | TG |
Tamil | TA |
Tatar | TT |
Tegulu | TE |
Thai | TH |
Tibetan | BO |
Tigrinya | TI |
Tonga | TO |
Tsonga | TS |
Turkish | TR |
Turkmen | TK |
Twi | TW |
Ukrainian | UK |
Urdu | UR |
Uzbek | UZ |
Vietnamese | VI |
Volapuk | VO |
Welsh | CY |
Wolof | WO |
Xhosa | XH |
Yiddish | JI |
Yoruba | YO |
Zulu | ZU |
最后
以上就是甜美世界为你收集整理的HTML5规范中的lang对应代码的全部内容,希望文章能够帮你解决HTML5规范中的lang对应代码所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复