HOW TO SET LANGUAGE CODE CORRECTLY

ISO Country Reference

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 = en
Country 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">
...
</html>
That tag means is using Indonesia's language, while the country can be set to Indonesia.

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>

ISO Language Reference


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






Rebates Bonus
Exclusive Rebate

Sign up today and be the first to get notified on new updates.


LOAD DISCUSSION

0 comments:

Post a Comment