HTML Lang Codes

All HTML topics
∙ Chapter 89

HTML Lang Codes

Set lang on the <html> element for accessibility and proper text handling. Use BCP47 language tags.

ExampleMeaning
enEnglish
en-USEnglish (United States)
hi-INHindi (India)
Correct lang improves screen reader pronunciation.