+ 4

Why use html language tag? What is the different if I use other language code?

Below in HTML code we see <HTML lang="en-us"> What is the different if I use other language code? like <HTML lang="bn"> Here ban is language code of Bangladesh. if I use bn it's means my script language in Bangla? Here is the code: < !DOCTYPE html > < html lang="en-US"> < body> ... < /body > < /html >

31st Jul 2017, 2:31 PM
ⓤⓝⓢⓜⓐⓡⓣ ⓑⓞⓨ
ⓤⓝⓢⓜⓐⓡⓣ ⓑⓞⓨ - avatar
3 ответов
+ 3
not scripts, but content!
31st Jul 2017, 3:13 PM
Вап
+ 2
The lang attribute specifies the language of the element's content. The browser uses its value to display certain characters correctly
31st Jul 2017, 3:12 PM
Вап
+ 2
@4rontender I see now I understood. Thank you!!!
31st Jul 2017, 3:33 PM
ⓤⓝⓢⓜⓐⓡⓣ ⓑⓞⓨ
ⓤⓝⓢⓜⓐⓡⓣ ⓑⓞⓨ - avatar