Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Popular

    HTML ISO Country Codes Reference

    Jimi Wikman

    ISO 3166

    The International Standard for country codes and codes for their subdivisions

    The purpose of ISO 3166 is to define internationally recognized codes of letters and/or numbers that we can use when we refer to countries and their subdivisions. However, it does not define the names of countries – this information comes from United Nations sources (Terminology Bulletin Country Names and the Country and Region Codes for Statistical Use maintained by the United Nations Statistics Divisions).

    The country codes can be represented either as a two-letter code (alpha-2) which is recommended as the general-purpose code, a three-letter code (alpha-3) which is more closely related to the country name and a three-digit numeric code (numeric-3) which can be useful if you need to avoid using Latin script.

    iso.org

    ---

    In HTML, we use the country code when we define the lang atribute. The lang attribute is used to identify the language of text content on the web. This information helps search engines return language specific results, and it is also used by screen readers that switch language profiles to provide the correct accent and pronunciation.

    The way the country codes are defined is that it has two parts. The first two characters defines the language (ISO 639-1) of the website, and the second two characters define the country. This is because several countries have more than one language as the official language.

    The following example specifies English as language and United States as country:

    <html lang="en-US">
    ...
    </html>

    Country Codes

     

    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
    LIBYA, STATE OF 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, FEDERAL DEMOCRATIC REPUBLIC OF 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
    PALESTINE, STATE OF 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
    SOUTH SUDAN SS
    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

    Discuss the Guide

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    • Frontend Reference Playbook

      Link to W3 Schools

      This reference was inspired by the amazing W3Schools website.

×
×
  • Create New...