Language reference code and Country reference code:
1. The first code is a language code that defines the language. (en)
2. The second code is a language code that defines the country. (US)
HOW TO SETS LANGUAGE CODE CORRECTLY
ISO Language Codes
Language Codes: English = enCountry Codes: United States of America = US
See the following example for this en-US.
EXAMPLE:
<html lang="en-US">
...
</html>
EXPLANATIONS WITH EXAMPLE:
Lets using one country for further example... Republic of Indonesia have many local language, like as Javanese's language, Sundanese's language and Bahasa Indonesia as a National language itself.<html lang="id-ID">That tag means is using Indonesia's language, while the country can be set to Indonesia.
...
</html>
Or you can use "su-ID" which means is using Sundanese's language. Sunda's people (Sundanese) live at Indonesia - South East Asia, so it will be "su-ID".
SIMPLIFIED VERSION
Simple version just add language code only, that will be fine.<html lang="en">
...
</html>
1. LANGUAGE CODE REFERENCE
For the complete sets reference for language code, please visits:www.w3schools.com/tags/ref_language_codes.asp
2. COUNTRY CODE REFERENCE
And then, for the complete sets reference for country code, please visits:www.w3schools.com/tags/ref_country_codes.asp
0 comments:
Post a Comment