HTML ISO Country Code (ISO 639-1)
What is ISO Country Code?
International Organization for Standardization(ISO) has published a Standard way for defining countries with Codes in abbreviations.
This ISO Country codes is strictly followed by Google to define which country the corresponding webpage belongs to.
There are different versions of ISO Country codes like ISO 639-1, ISO 639-2/T, ISO 639-2/B, ISO 639-3. But Google strictly recommended to use ISO 639-1.
Where to Specify?
The ISO Country codes should be specified in the current page and the external page linked to the current page using <link>.
How to Specify?
There are 2 attributes that helps you to specify the Country Code of a page. They are
- lang - To specify the Country Code of the current page.
- hreflang - To specify the Country Code of the external page linked to the current page using <link>.
Example
Note: In the above example, en refers to the language code. Whereas CA and AU refer to the Country Code.
It is to be noted that when you have specific url's for English speakers in Australia(en-au), Canada(en-ca) etc. then the Language code should be followed by the Country code.
ISO Country code(ISO 639-1)
The following table comprise of ISO Country code(ISO 639-1).
Country | ISO code |
---|---|
afghanistan | af |
albania | al |
algeria | dz |
american samoa | as |
andorra | ad |
angola | ao |
antarctica | aq |
antigua and barbuda | ag |
argentina | ar |
armenia | am |
aruba | aw |
australia | au |
austria | at |
azerbaijan | az |
bahamas | bs |
bahrain | bh |
bangladesh | bd |
barbados | bb |
belarus | by |
belgium | be |
belize | bz |
benin | bj |
bermuda | bm |
bhutan | bt |
bolivia | bo |
bosnia and herzegovina | ba |
botswana | bw |
bouvet island | bv |
brazil | br |
british indian ocean territory | io |
brunei darussalam | bn |
bulgaria | bg |
burkina faso | bf |
burundi | bi |
cambodia | kh |
cameroon | cm |
canada | ca |
cape verde | cv |
cayman islands | ky |
central african republic | cf |
chad | td |
chile | cl |
china | cn |
christmas island | cx |
cocos (keeling) islands | cc |
colombia | co |
comoros | km |
congo | cg |
congo, the democratic republic of the | cd |
cook islands | ck |
costa rica | cr |
côte d'ivoire | ci |
croatia | hr |
cuba | cu |
cyprus | cy |
czech republic | cz |
denmark | dk |
djibouti | dj |
dominica | dm |
dominican republic | do |
ecuador | ec |
egypt | eg |
el salvador | sv |
equatorial guinea | gq |
eritrea | er |
estonia | ee |
ethiopia | et |
falkland islands (malvinas) | fk |
faroe islands | fo |
fiji | fj |
finland | fi |
france | fr |
french guiana | gf |
french polynesia | pf |
french southern territories | tf |
gabon | ga |
gambia | gm |
georgia | ge |
germany | de |
ghana | gh |
gibraltar | gi |
greece | gr |
greenland | gl |
grenada | gd |
guadeloupe | gp |
guam | gu |
guatemala | gt |
guinea | gn |
guinea-bissau | gw |
guyana | gy |
haiti | ht |
heard island and mcdonald islands | hm |
honduras | hn |
hong kong | hk |
hungary | hu |
iceland | is |
india | in |
indonesia | id |
iran, islamic republic of | ir |
iraq | iq |
ireland | ie |
israel | il |
italy | it |
jamaica | jm |
japan | jp |
jordan | jo |
kazakhstan | kz |
kenya | ke |
kiribati | ki |
korea, democratic people's republic of | kp |
korea, republic of | kr |
kuwait | kw |
kyrgyzstan | kg |
lao people's democratic republic(laos) | la |
latvia | lv |
lebanon | lb |
lesotho | ls |
liberia | lr |
libyan arab jamahiriya | ly |
liechtenstein | li |
lithuania | lt |
luxembourg | lu |
macao | mo |
macedonia, the former yugoslav republic of | mk |
madagascar | mg |
malawi | mw |
malaysia | my |
maldives | mv |
mali | ml |
malta | mt |
marshall islands | mh |
martinique | mq |
mauritania | mr |
mauritius | mu |
mayotte | yt |
mexico | mx |
micronesia, federated states of | fm |
moldova, republic of | md |
monaco | mc |
mongolia | mn |
montenegro | me |
montserrat | ms |
morocco | ma |
mozambique | mz |
myanmar | mm |
namibia | na |
nauru | nr |
nepal | np |
netherlands | nl |
netherlands antilles | an |
new caledonia | nc |
new zealand | nz |
nicaragua | ni |
niger | ne |
nigeria | ng |
niue | nu |
norfolk island | nf |
northern mariana islands | mp |
norway | no |
oman | om |
pakistan | pk |
palau | pw |
palestinian territory, occupied | ps |
panama | pa |
papua new guinea | pg |
paraguay | py |
peru | pe |
philippines | ph |
pitcairn | pn |
poland | pl |
portugal | pt |
puerto rico | pr |
qatar | qa |
réunion | re |
romania | ro |
russian federation | ru |
rwanda | rw |
saint helena | sh |
saint kitts and nevis | kn |
saint lucia | lc |
saint pierre and miquelon | pm |
saint vincent and the grenadines | vc |
samoa | ws |
san marino | sm |
sao tome and principe | st |
saudi arabia | sa |
senegal | sn |
serbia | rs |
seychelles | sc |
sierra leone | sl |
singapore | sg |
slovakia | sk |
slovenia | si |
solomon islands | sb |
somalia | so |
south africa | za |
south georgia and the south sandwich islands | gs |
spain | es |
sri lanka | lk |
sudan | sd |
suriname | sr |
svalbard and jan mayen | sj |
swaziland | sz |
sweden | se |
switzerland | ch |
syrian arab republic | sy |
taiwan | tw |
tajikistan | tj |
tanzania, united republic of | tz |
thailand | th |
timor-leste | tl |
togo | tg |
tokelau | tk |
tonga | to |
trinidad and tobago | tt |
tunisia | tn |
turkey | tr |
turkmenistan | tm |
turks and caicos islands | tc |
tuvalu | tv |
uganda | ug |
ukraine | ua |
united arab emirates | ae |
united kingdom | gb |
united states | us |
united states minor outlying islands | um |
uruguay | uy |
uzbekistan | uz |
vanuatu | vu |
venezuela | ve |
viet nam | vn |
virgin islands, british | vg |
virgin islands, u.s. | vi |
wallis and futuna | wf |
western sahara | eh |
yemen | ye |
zambia | zm |
zimbabwe | zw |
Reminder
Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in HTML.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.