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.
| Example | Meaning |
|---|---|
en | English |
en-US | English (United States) |
hi-IN | Hindi (India) |
✅Correct
lang improves screen reader pronunciation.