Tagged with "resources" http://www.addedbytes.com/feeds/tag-feed/ en Web Development in Brighton - Added Bytes 2006 120 Text Readability Scores http://www.addedbytes.com/blog/code/readability-score/ This tool has moved! It's now on its own domain, at Readability-Score.com. (It's also had a small makeover and is now full of speedy AJAXy goodness.)

The code that powers the tool is still available on GitHub.



]]>
Wed, 07 Jul 2004 15:14:59 +0100 http://www.addedbytes.com/blog/code/readability-score/ Dave Child ,,,,,,,,,,
Internet Country Codes http://www.addedbytes.com/blog/code/internet-country-codes/ I recently had need to create a list of the ccTLDs, to allow someone to find out what a country's ccTLD was. Maybe it'll be useful to someone else as well!

Afghanistan.af
Albania.al
Algeria.dz
American Samoa.as
Andorra.ad
Angola.ao
Anguilla.ai
Antarctica.aq
Antigua and Barbuda.ag
Argentina.ar
Armenia.am
Aruba.aw
Australia.au
Austria.at
Azerbaijan.az
Bahamas, The.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
British Virgin Islands.vg
Brunei.bn
Bulgaria.bg
Burkina Faso.bf
Burma.mm
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, Democratic Republic of the.cd
Congo, Republic of the.cg
Cook Islands.ck
Costa Rica.cr
Cote d'Ivoire.ci
Croatia.hr
Cuba.cu
Cyprus.cy
Czech Republic.cz
Denmark.dk
Djibouti.dj
Dominica.dm
Dominican Republic.do
East Timor.tl
Ecuador.ec
Egypt.eg
El Salvador.sv
Equatorial Guinea.gq
Eritrea.er
Estonia.ee
Ethiopia.et
Falkland Islands (Islas Malvinas).fk
Faroe Islands.fo
Fiji.fj
Finland.fi
France.fr
France, Metropolitan.fx
French Guiana.gf
French Polynesia.pf
French Southern and Antarctic Lands.tf
Gabon.ga
Gambia, The.gm
Gaza Strip.ps
Georgia.ge
Germany.de
Ghana.gh
Gibraltar.gi
Greece.gr
Greenland.gl
Grenada.gd
Guadeloupe.gp
Guam.gu
Guatemala.gt
Guernsey.gg
Guinea.gn
Guinea-Bissau.gw
Guyana.gy
Haiti.ht
Heard Island and McDonald Islands.hm
Holy See.va
Honduras.hn
Hong Kong.hk
Hungary.hu
Iceland.is
India.in
Indonesia.id
Iran.ir
Iraq.iq
Ireland.ie
Israel.il
Italy.it
Jamaica.jm
Japan.jp
Jersey.je
Jordan.jo
Kazakhstan.kz
Kenya.ke
Kiribati.ki
Korea, North.kp
Korea, South.kr
Kuwait.kw
Kyrgyzstan.kg
Laos.la
Latvia.lv
Lebanon.lb
Lesotho.ls
Liberia.lr
Libya.ly
Liechtenstein.li
Lithuania.lt
Luxembourg.lu
Macau.mo
Macedonia.mk
Madagascar.mg
Malawi.mw
Malaysia.my
Maldives.mv
Mali.ml
Malta.mt
Man, Isle of.im
Marshall Islands.mh
Martinique.mq
Mauritania.mr
Mauritius.mu
Mayotte.yt
Mexico.mx
Micronesia, Federated States of.fm
Moldova.md
Monaco.mc
Mongolia.mn
Montserrat.ms
Morocco.ma
Mozambique.mz
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
Panama.pa
Papua New Guinea.pg
Paraguay.py
Peru.pe
Philippines.ph
Pitcairn Islands.pn
Poland.pl
Portugal.pt
Puerto Rico.pr
Qatar.qa
Reunion.re
Romania.ro
Russia.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 and Montenegro.cs
Seychelles.sc
Sierra Leone.sl
Singapore.sg
Slovakia.sk
Slovenia.si
Solomon Islands.sb
Somalia.so
South Africa.za
South Georgia and the Islands.gs
Soviet Union.su
Spain.es
Sri Lanka.lk
Sudan.sd
Suriname.sr
Svalbard.sj
Swaziland.sz
Sweden.se
Switzerland.ch
Syria.sy
Taiwan.tw
Tajikistan.tj
Tanzania.tz
Thailand.th
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.uk
United States.us
United States Minor Outlying Islands.um
Uruguay.uy
Uzbekistan.uz
Vanuatu.vu
Venezuela.ve
Vietnam.vn
Virgin Islands.vi
Virgin Islands (UK).vg
Virgin Islands (US).vi
Wallis and Futuna.wf
West Bank.ps
Western Sahara.eh
Western Samoa.ws
Zambia.zm
Zimbabwe.zw

Reverse Lookup

This list is ordered by the domain names, rather than countries, to allow you to find out which country a domain name represents.

Andorra.ad
United Arab Emirates.ae
Afghanistan.af
Antigua and Barbuda.ag
Anguilla.ai
Albania.al
Armenia.am
Netherlands Antilles.an
Angola.ao
Antarctica.aq
Argentina.ar
American Samoa.as
Austria.at
Australia.au
Aruba.aw
Azerbaijan.az
Bosnia and Herzegovina.ba
Barbados.bb
Bangladesh.bd
Belgium.be
Burkina Faso.bf
Bulgaria.bg
Bahrain.bh
Burundi.bi
Benin.bj
Bermuda.bm
Brunei.bn
Bolivia.bo
Brazil.br
Bahamas, The.bs
Bhutan.bt
Bouvet Island.bv
Botswana.bw
Belarus.by
Belize.bz
Canada.ca
Cocos (Keeling) Islands.cc
Congo, Democratic Republic of the.cd
Central African Republic.cf
Congo, Republic of the.cg
Switzerland.ch
Cote d'Ivoire.ci
Chile.cl
Cameroon.cm
China.cn
Colombia.co
Costa Rica.cr
Serbia and Montenegro.cs
Cuba.cu
Cape Verde.cv
Christmas Island.cx
Cyprus.cy
Czech Republic.cz
Germany.de
Djibouti.dj
Denmark.dk
Dominica.dm
Dominican Republic.do
Algeria.dz
Ecuador.ec
Estonia.ee
Egypt.eg
Western Sahara.eh
Eritrea.er
Spain.es
Ethiopia.et
Finland.fi
Fiji.fj
Falkland Islands (Islas Malvinas).fk
Micronesia, Federated States of.fm
Faroe Islands.fo
France.fr
France, Metropolitan.fx
Gabon.ga
Grenada.gd
Georgia.ge
French Guiana.gf
Guernsey.gg
Ghana.gh
Gibraltar.gi
Greenland.gl
Gambia, The.gm
Guinea.gn
Guadeloupe.gp
Equatorial Guinea.gq
Greece.gr
South Georgia and the Islands.gs
Guatemala.gt
Guam.gu
Guinea-Bissau.gw
Guyana.gy
Hong Kong.hk
Heard Island and McDonald Islands.hm
Honduras.hn
Croatia.hr
Haiti.ht
Hungary.hu
Indonesia.id
Ireland.ie
Israel.il
Man, Isle of.im
India.in
British Indian Ocean Territory.io
Iraq.iq
Iran.ir
Iceland.is
Italy.it
Jersey.je
Jamaica.jm
Jordan.jo
Japan.jp
Kenya.ke
Kyrgyzstan.kg
Cambodia.kh
Kiribati.ki
Comoros.km
Saint Kitts and Nevis.kn
Korea, North.kp
Korea, South.kr
Kuwait.kw
Cayman Islands.ky
Kazakhstan.kz
Laos.la
Lebanon.lb
Saint Lucia.lc
Liechtenstein.li
Sri Lanka.lk
Liberia.lr
Lesotho.ls
Lithuania.lt
Luxembourg.lu
Latvia.lv
Libya.ly
Morocco.ma
Monaco.mc
Moldova.md
Madagascar.mg
Marshall Islands.mh
Macedonia.mk
Mali.ml
Burma.mm
Mongolia.mn
Macau.mo
Northern Mariana Islands.mp
Martinique.mq
Mauritania.mr
Montserrat.ms
Malta.mt
Mauritius.mu
Maldives.mv
Malawi.mw
Mexico.mx
Malaysia.my
Mozambique.mz
Namibia.na
New Caledonia.nc
Niger.ne
Norfolk Island.nf
Nigeria.ng
Nicaragua.ni
Netherlands.nl
Norway.no
Nepal.np
Nauru.nr
Niue.nu
New Zealand.nz
Oman.om
Panama.pa
Peru.pe
French Polynesia.pf
Papua New Guinea.pg
Philippines.ph
Pakistan.pk
Poland.pl
Saint Pierre and Miquelon.pm
Pitcairn Islands.pn
Puerto Rico.pr
Gaza Strip.ps
West Bank.ps
Portugal.pt
Palau.pw
Paraguay.py
Qatar.qa
Reunion.re
Romania.ro
Russia.ru
Rwanda.rw
Saudi Arabia.sa
Solomon Islands.sb
Seychelles.sc
Sudan.sd
Sweden.se
Singapore.sg
Saint Helena.sh
Slovenia.si
Svalbard.sj
Slovakia.sk
Sierra Leone.sl
San Marino.sm
Senegal.sn
Somalia.so
Suriname.sr
Sao Tome and Principe.st
Soviet Union.su
El Salvador.sv
Syria.sy
Swaziland.sz
Turks and Caicos Islands.tc
Chad.td
French Southern and Antarctic Lands.tf
Togo.tg
Thailand.th
Tajikistan.tj
Tokelau.tk
East Timor.tl
Turkmenistan.tm
Tunisia.tn
Tonga.to
Turkey.tr
Trinidad and Tobago.tt
Tuvalu.tv
Taiwan.tw
Tanzania.tz
Ukraine.ua
Uganda.ug
United Kingdom.uk
United States Minor Outlying Islands.um
United States.us
Uruguay.uy
Uzbekistan.uz
Holy See.va
Saint Vincent and the Grenadines.vc
Venezuela.ve
British Virgin Islands.vg
Virgin Islands (UK).vg
Virgin Islands.vi
Virgin Islands (US).vi
Vietnam.vn
Vanuatu.vu
Wallis and Futuna.wf
Samoa.ws
Western Samoa.ws
Mayotte.yt
South Africa.za
Zambia.zm
Zimbabwe.zw


]]>
Fri, 07 Oct 2005 09:06:59 +0100 http://www.addedbytes.com/blog/code/internet-country-codes/ Dave Child ,,,,,,,,,,
View Page Structure http://www.addedbytes.com/blog/code/view-page-structure/ A couple of days ago, I was having a little CSS trouble. In the end, it turned out that I had set a property of an element "above" in the document tree, and the problematic element was inheriting that property.

It struck me that it would be easier to work through this kind of CSS problem with some kind of simple tool to show how a page was put together. If I could see all the tags on the page in a nested format, with parent and child relationships obvious, and without all the text getting in the way, my life would be easier.

So, I put together this tool. In simple terms, it will fetch a page from a web server and output the tags within the page in a nested list. The JavaScript side of it will also highlight children of an element when you hover over it.

Classes and ids attributes are highlighted, as are tag names. Class and ID names, though, must be enclosed in quotation marks to be highlighted. Text, closing tags and line breaks are not shown. Though I can understand some people may find it useful to see text, I found it made the tree too large to be usable.

I've used it a few times, and am quickly finding it saves quite a lot of time solving simple CSS problems or conflicts. Which is exactly what it was supposed to do. Enjoy!

Highlighting Issues

When writing the tool, I came across a fairly unusual problem. I wanted, when the mouse was over an element, to highlight its children. However, this cannot be done with CSS (at least, I couldn't think of a way to make it work).

The problem with the CSS was that whenever you hover over an element, you are also hovering over its parents. So they, and their children, are highlighted - meaning everything is highlighted. For this reason, the highlighting of elements uses JavaScript.

How to Use

The page structure tool is written to accept a URL either by GET or POST. You can therefore use it one of two ways.

First, you can use the tool by visiting the URL below, replacing "##url##" with the address of the page you want to view:

http://www.addedbytes.com/view_structure.php?url=##url##

Alternatively, you can use the following form to submit an address to the page:

Bookmarklet

To make life a little easier, I've coded a quick JavaScript bookmarklet for you to use, that, when activated, will automatically submit the URL of the page you are viewing to the tool. Simply copy or drag the link below to your links bar, your favourites folder or anywhere else you wish:

Notes

  • This tool works best with valid code, especially XHTML.
  • A certain amount of basic code improvement is done before processing (for example all empty tags are automatically closed).
  • Sites with non-empty tags that aren't closed properly may not show up correctly.
  • Sites with large amounts of nested code should still show up, but it may be difficult to view the output.

Example

If you want to see an example of the output of this tool, you can view the structure for AddedBytes.com.



]]>
Tue, 12 Oct 2004 16:24:00 +0100 http://www.addedbytes.com/blog/code/view-page-structure/ Dave Child ,,,,,,,,,,
UK Counties Select Box http://www.addedbytes.com/blog/code/uk-counties-select-box/ This counties select list was last updated on the 8th March 2007, and should be accurate for that date (and I should imagine, far beyond). If you spot any inaccuracies, please let me know.

The English counties were updated in 2008 to use the list of ceremonial counties as defined by the Lieutenancies Act 1997 (Wikipedia has more info on counties).

Listed and grouped by Region

<select name="county"> <optgroup label="England"> <option>Bedfordshire</option> <option>Berkshire</option> <option>Bristol</option> <option>Buckinghamshire</option> <option>Cambridgeshire</option> <option>Cheshire</option> <option>City of London</option> <option>Cornwall</option> <option>Cumbria</option> <option>Derbyshire</option> <option>Devon</option> <option>Dorset</option> <option>Durham</option> <option>East Riding of Yorkshire</option> <option>East Sussex</option> <option>Essex</option> <option>Gloucestershire</option> <option>Greater London</option> <option>Greater Manchester</option> <option>Hampshire</option> <option>Herefordshire</option> <option>Hertfordshire</option> <option>Isle of Wight</option> <option>Kent</option> <option>Lancashire</option> <option>Leicestershire</option> <option>Lincolnshire</option> <option>Merseyside</option> <option>Norfolk</option> <option>North Yorkshire</option> <option>Northamptonshire</option> <option>Northumberland</option> <option>Nottinghamshire</option> <option>Oxfordshire</option> <option>Rutland</option> <option>Shropshire</option> <option>Somerset</option> <option>South Yorkshire</option> <option>Staffordshire</option> <option>Suffolk</option> <option>Surrey</option> <option>Tyne and Wear</option> <option>Warwickshire</option> <option>West Midlands</option> <option>West Sussex</option> <option>West Yorkshire</option> <option>Wiltshire</option> <option>Worcestershire</option> </optgroup> <optgroup label="Wales"> <option>Anglesey</option> <option>Brecknockshire</option> <option>Caernarfonshire</option> <option>Carmarthenshire</option> <option>Cardiganshire</option> <option>Denbighshire</option> <option>Flintshire</option> <option>Glamorgan</option> <option>Merioneth</option> <option>Monmouthshire</option> <option>Montgomeryshire</option> <option>Pembrokeshire</option> <option>Radnorshire</option> </optgroup> <optgroup label="Scotland"> <option>Aberdeenshire</option> <option>Angus</option> <option>Argyllshire</option> <option>Ayrshire</option> <option>Banffshire</option> <option>Berwickshire</option> <option>Buteshire</option> <option>Cromartyshire</option> <option>Caithness</option> <option>Clackmannanshire</option> <option>Dumfriesshire</option> <option>Dunbartonshire</option> <option>East Lothian</option> <option>Fife</option> <option>Inverness-shire</option> <option>Kincardineshire</option> <option>Kinross</option> <option>Kirkcudbrightshire</option> <option>Lanarkshire</option> <option>Midlothian</option> <option>Morayshire</option> <option>Nairnshire</option> <option>Orkney</option> <option>Peeblesshire</option> <option>Perthshire</option> <option>Renfrewshire</option> <option>Ross-shire</option> <option>Roxburghshire</option> <option>Selkirkshire</option> <option>Shetland</option> <option>Stirlingshire</option> <option>Sutherland</option> <option>West Lothian</option> <option>Wigtownshire</option> </optgroup> <optgroup label="Northern Ireland"> <option>Antrim</option> <option>Armagh</option> <option>Down</option> <option>Fermanagh</option> <option>Londonderry</option> <option>Tyrone</option> </optgroup> </select>

This list was compiled from a variety of sources, both online and offline, and no guarantee is made as to its accuracy. Please report any mistakes to dave@addedbytes.com.



]]>
Sun, 15 Feb 2004 14:34:00 +0000 http://www.addedbytes.com/blog/code/uk-counties-select-box/ Dave Child ,,
US States Select Box http://www.addedbytes.com/blog/code/us-states-select-box/ This states select list was last updated on the 15th March 2004, and should be accurate for that date (and I should imagine, far beyond). If you spot any inaccuracies, please let me know.

This list is provided for you to use as you see fit, but please do not reproduce it elsewhere without creditting this site.

The list comes in two versions. The first is a list without the two-letter codes for each state, the second with the two letter codes.

Without State Abbreviation Codes

<select name="state"> <option>Alabama</option> <option>Alaska</option> <option>Arizona</option> <option>Arkansas</option> <option>California</option> <option>Colorado</option> <option>Connecticut</option> <option>Delaware</option> <option>Florida</option> <option>Georgia</option> <option>Hawaii</option> <option>Idaho</option> <option>Illinois</option> <option>Indiana</option> <option>Iowa</option> <option>Kansas</option> <option>Kentucky</option> <option>Louisiana</option> <option>Maine</option> <option>Maryland</option> <option>Massachusetts</option> <option>Michigan</option> <option>Minnesota</option> <option>Mississippi</option> <option>Missouri</option> <option>Montana</option> <option>Nebraska</option> <option>Nevada</option> <option>New Hampshire</option> <option>New Jersey</option> <option>New Mexico</option> <option>New York</option> <option>North Carolina</option> <option>North Dakota</option> <option>Ohio</option> <option>Oklahoma</option> <option>Oregon</option> <option>Pennsylvania</option> <option>Rhode Island</option> <option>South Carolina</option> <option>South Dakota</option> <option>Tennessee</option> <option>Texas</option> <option>Utah</option> <option>Vermont</option> <option>Virginia</option> <option>Washington</option> <option>West Virginia</option> <option>Wisconsin</option> <option>Wyoming</option> </select>

With State Abbreviation Codes

<select name="state"> <option value="AL">Alabama</option> <option value="AK">Alaska</option> <option value="AZ">Arizona</option> <option value="AR">Arkansas</option> <option value="CA">California</option> <option value="CO">Colorado</option> <option value="CT">Connecticut</option> <option value="DE">Delaware</option> <option value="FL">Florida</option> <option value="GA">Georgia</option> <option value="HI">Hawaii</option> <option value="ID">Idaho</option> <option value="IL">Illinois</option> <option value="IN">Indiana</option> <option value="IA">Iowa</option> <option value="KS">Kansas</option> <option value="KY">Kentucky</option> <option value="LA">Louisiana</option> <option value="ME">Maine</option> <option value="MD">Maryland</option> <option value="MA">Massachusetts</option> <option value="MI">Michigan</option> <option value="MN">Minnesota</option> <option value="MS">Mississippi</option> <option value="MO">Missouri</option> <option value="MT">Montana</option> <option value="NE">Nebraska</option> <option value="NV">Nevada</option> <option value="NH">New Hampshire</option> <option value="NJ">New Jersey</option> <option value="NM">New Mexico</option> <option value="NY">New York</option> <option value="NC">North Carolina</option> <option value="ND">North Dakota</option> <option value="OH">Ohio</option> <option value="OK">Oklahoma</option> <option value="OR">Oregon</option> <option value="PA">Pennsylvania</option> <option value="RI">Rhode Island</option> <option value="SC">South Carolina</option> <option value="SD">South Dakota</option> <option value="TN">Tennessee</option> <option value="TX">Texas</option> <option value="UT">Utah</option> <option value="VT">Vermont</option> <option value="VA">Virginia</option> <option value="WA">Washington</option> <option value="WV">West Virginia</option> <option value="WI">Wisconsin</option> <option value="WY">Wyoming</option> </select>

This list was compiled from a variety of sources, both online and offline, and no guarantee is made as to its accuracy. Please report any mistakes to dave@addedbytes.com.



]]>
Sat, 14 Feb 2004 14:14:00 +0000 http://www.addedbytes.com/blog/code/us-states-select-box/ Dave Child ,,,,,,,,,,
Countries Select Box http://www.addedbytes.com/blog/code/countries-select-box/ This countries select list was last updated on the 24th October 2003, and should be accurate for that date. If you spot any inaccuracies, please let me know.

I use these things so often it's scary, and I dread the thought of ever having to compile another from scratch - so here you go. This list is provided for you to use as you see fit, but please do not reproduce it elsewhere without creditting this site.

Update, April 2008: A very kind chap by the name of David Hunter has put together a French version of this list, which is below the English version.

English

<select name="country"> <option>Afghanistan</option> <option>Albania</option> <option>Algeria</option> <option>American Samoa</option> <option>Andorra</option> <option>Angola</option> <option>Anguilla</option> <option>Antarctica</option> <option>Antigua and Barbuda</option> <option>Argentina</option> <option>Armenia</option> <option>Aruba</option> <option>Australia</option> <option>Austria</option> <option>Azerbaijan</option> <option>Bahamas</option> <option>Bahrain</option> <option>Bangladesh</option> <option>Barbados</option> <option>Belarus</option> <option>Belgium</option> <option>Belize</option> <option>Benin</option> <option>Bermuda</option> <option>Bhutan</option> <option>Bolivia</option> <option>Bosnia and Herzegovina</option> <option>Botswana</option> <option>Bouvet Island</option> <option>Brazil</option> <option>British Indian Ocean Territory</option> <option>Brunei Darussalam</option> <option>Bulgaria</option> <option>Burkina Faso</option> <option>Burundi</option> <option>Cambodia</option> <option>Cameroon</option> <option>Canada</option> <option>Cape Verde</option> <option>Cayman Islands</option> <option>Central African Republic</option> <option>Chad</option> <option>Chile</option> <option>China</option> <option>Christmas Island</option> <option>Cocos Islands</option> <option>Colombia</option> <option>Comoros</option> <option>Congo</option> <option>Congo, Democratic Republic of the</option> <option>Cook Islands</option> <option>Costa Rica</option> <option>Cote d'Ivoire</option> <option>Croatia</option> <option>Cuba</option> <option>Cyprus</option> <option>Czech Republic</option> <option>Denmark</option> <option>Djibouti</option> <option>Dominica</option> <option>Dominican Republic</option> <option>Ecuador</option> <option>Egypt</option> <option>El Salvador</option> <option>Equatorial Guinea</option> <option>Eritrea</option> <option>Estonia</option> <option>Ethiopia</option> <option>Falkland Islands</option> <option>Faroe Islands</option> <option>Fiji</option> <option>Finland</option> <option>France</option> <option>French Guiana</option> <option>French Polynesia</option> <option>Gabon</option> <option>Gambia</option> <option>Georgia</option> <option>Germany</option> <option>Ghana</option> <option>Gibraltar</option> <option>Greece</option> <option>Greenland</option> <option>Grenada</option> <option>Guadeloupe</option> <option>Guam</option> <option>Guatemala</option> <option>Guinea</option> <option>Guinea-Bissau</option> <option>Guyana</option> <option>Haiti</option> <option>Heard Island and McDonald Islands</option> <option>Honduras</option> <option>Hong Kong</option> <option>Hungary</option> <option>Iceland</option> <option>India</option> <option>Indonesia</option> <option>Iran</option> <option>Iraq</option> <option>Ireland</option> <option>Israel</option> <option>Italy</option> <option>Jamaica</option> <option>Japan</option> <option>Jordan</option> <option>Kazakhstan</option> <option>Kenya</option> <option>Kiribati</option> <option>Kuwait</option> <option>Kyrgyzstan</option> <option>Laos</option> <option>Latvia</option> <option>Lebanon</option> <option>Lesotho</option> <option>Liberia</option> <option>Libya</option> <option>Liechtenstein</option> <option>Lithuania</option> <option>Luxembourg</option> <option>Macao</option> <option>Madagascar</option> <option>Malawi</option> <option>Malaysia</option> <option>Maldives</option> <option>Mali</option> <option>Malta</option> <option>Marshall Islands</option> <option>Martinique</option> <option>Mauritania</option> <option>Mauritius</option> <option>Mayotte</option> <option>Mexico</option> <option>Micronesia</option> <option>Moldova</option> <option>Monaco</option> <option>Mongolia</option> <option>Montenegro</option> <option>Montserrat</option> <option>Morocco</option> <option>Mozambique</option> <option>Myanmar</option> <option>Namibia</option> <option>Nauru</option> <option>Nepal</option> <option>Netherlands</option> <option>Netherlands Antilles</option> <option>New Caledonia</option> <option>New Zealand</option> <option>Nicaragua</option> <option>Niger</option> <option>Nigeria</option> <option>Norfolk Island</option> <option>North Korea</option> <option>Norway</option> <option>Oman</option> <option>Pakistan</option> <option>Palau</option> <option>Palestinian Territory</option> <option>Panama</option> <option>Papua New Guinea</option> <option>Paraguay</option> <option>Peru</option> <option>Philippines</option> <option>Pitcairn</option> <option>Poland</option> <option>Portugal</option> <option>Puerto Rico</option> <option>Qatar</option> <option>Romania</option> <option>Russian Federation</option> <option>Rwanda</option> <option>Saint Helena</option> <option>Saint Kitts and Nevis</option> <option>Saint Lucia</option> <option>Saint Pierre and Miquelon</option> <option>Saint Vincent and the Grenadines</option> <option>Samoa</option> <option>San Marino</option> <option>Sao Tome and Principe</option> <option>Saudi Arabia</option> <option>Senegal</option> <option>Serbia</option> <option>Seychelles</option> <option>Sierra Leone</option> <option>Singapore</option> <option>Slovakia</option> <option>Slovenia</option> <option>Solomon Islands</option> <option>Somalia</option> <option>South Africa</option> <option>South Georgia</option> <option>South Korea</option> <option>Spain</option> <option>Sri Lanka</option> <option>Sudan</option> <option>Suriname</option> <option>Svalbard and Jan Mayen</option> <option>Swaziland</option> <option>Sweden</option> <option>Switzerland</option> <option>Syrian Arab Republic</option> <option>Taiwan</option> <option>Tajikistan</option> <option>Tanzania</option> <option>Thailand</option> <option>The Former Yugoslav Republic of Macedonia</option> <option>Timor-Leste</option> <option>Togo</option> <option>Tokelau</option> <option>Tonga</option> <option>Trinidad and Tobago</option> <option>Tunisia</option> <option>Turkey</option> <option>Turkmenistan</option> <option>Tuvalu</option> <option>Uganda</option> <option>Ukraine</option> <option>United Arab Emirates</option> <option>United Kingdom</option> <option>United States</option> <option>United States Minor Outlying Islands</option> <option>Uruguay</option> <option>Uzbekistan</option> <option>Vanuatu</option> <option>Vatican City</option> <option>Venezuela</option> <option>Vietnam</option> <option>Virgin Islands, British</option> <option>Virgin Islands, U.S.</option> <option>Wallis and Futuna</option> <option>Western Sahara</option> <option>Yemen</option> <option>Zambia</option> <option>Zimbabwe</option> </select>

French / Français

This select list also includes the WTO 2 letter country codes.

<select name="country"> <option value="AF">Afghanistan</option> <option value="ZA">Afrique du Sud</option> <option value="AL">Albanie</option> <option value="DZ">Algérie</option> <option value="DE">Allemagne</option> <option value="AD">Andorre</option> <option value="AO">Angola</option> <option value="AI">Anguilla</option> <option value="AG">Antigua et Barbuda</option> <option value="AN">Antilles néerlandaises</option> <option value="SA">Arabie saoudite</option> <option value="AR">Argentine</option> <option value="AM">Arménie</option> <option value="AW">Aruba</option> <option value="AU">Australie</option> <option value="AT">Autriche</option> <option value="AZ">Azerbaïdjan</option> <option value="BS">Bahamas</option> <option value="BH">Bahreïn</option> <option value="BD">Bangladesh</option> <option value="BB">Barbade</option> <option value="BE">Belgique</option> <option value="BM">Bermudes</option> <option value="BT">Bhoutan</option> <option value="BY">Biélorussie</option> <option value="BO">Bolivie</option> <option value="BA">Bosnie et Herzégovine</option> <option value="BW">Botswana</option> <option value="BN">Brunei Darussalam</option> <option value="BR">Brésil</option> <option value="BG">Bulgarie</option> <option value="BF">Burkina Faso</option> <option value="BI">Burundi</option> <option value="BZ">Bélize</option> <option value="BJ">Bénin</option> <option value="KH">Cambodge</option> <option value="CM">Cameroun</option> <option value="CA">Canada</option> <option value="CV">Cap-Vert</option> <option value="CF">Centrafrique</option> <option value="CL">Chili</option> <option value="CN">Chine</option> <option value="CY">Chypre</option> <option value="CO">Colombiae</option> <option value="KM">Comores</option> <option value="CG">Congo</option> <option value="KR">Corée du Nord</option> <option value="KP">Corée du Sud</option> <option value="CR">Costa Rica</option> <option value="HR">Croatie</option> <option value="CU">Cuba</option> <option value="CI">Côte d'Ivoire</option> <option value="DK">Danemark</option> <option value="DJ">Djibouti</option> <option value="DM">Dominique</option> <option value="SV">El Salvador</option> <option value="ES">Espagne</option> <option value="EE">Estonie</option> <option value="FJ">Fidji</option> <option value="FI">Finlande</option> <option value="FR">France</option> <option value="GA">Gabon</option> <option value="GM">Gambie</option> <option value="GH">Ghana</option> <option value="GI">Gibraltar</option> <option value="GD">Grenade</option> <option value="GL">Groënland</option> <option value="GR">Grèce</option> <option value="GP">Guadeloupe</option> <option value="GU">Guam</option> <option value="GT">Guatemala</option> <option value="GN">Guinée</option> <option value="GQ">Guinée équatoriale</option> <option value="GW">Guinée-Bissau</option> <option value="GY">Guyane</option> <option value="GF">Guyane française</option> <option value="GE">Géorgie</option> <option value="HT">Haïti</option> <option value="HN">Honduras</option> <option value="HK">Hong Kong</option> <option value="HU">Hongrie</option> <option value="BV">Ile Bouvet</option> <option value="CX">Ile Christmas</option> <option value="HM">Ile Heard et iles McDonald</option> <option value="MU">Ile Maurice</option> <option value="NF">Ile Norfolk</option> <option value="KY">Iles Cayman</option> <option value="CC">Iles Cocos (Keeling)</option> <option value="CK">Iles Cook</option> <option value="FK">Iles Falkland (Malouines)</option> <option value="FO">Iles Faroe</option> <option value="MH">Iles Marshall</option> <option value="MP">Iles Northern Mariana</option> <option value="SB">Iles Salomon</option> <option value="VG">Iles Vierges, G.B.</option> <option value="VI">Iles Vierges, É.U.</option> <option value="IN">Inde</option> <option value="ID">Indonésie</option> <option value="IQ">Irak</option> <option value="IR">Iran</option> <option value="IE">Irlande</option> <option value="IS">Islande</option> <option value="IL">Israël</option> <option value="IT">Italie</option> <option value="JM">Jamaïque</option> <option value="JP">Japon</option> <option value="JO">Jordan</option> <option value="KZ">Kazakhstan</option> <option value="KE">Kenya</option> <option value="KG">Kirghizstan</option> <option value="KI">Kiribati</option> <option value="KW">Koweït</option> <option value="LA">Laos</option> <option value="LV">Lettonie</option> <option value="LB">Liban</option> <option value="LY">Libye</option> <option value="LR">Libéria</option> <option value="LI">Liechtenstein</option> <option value="LT">Lituanie</option> <option value="LU">Luxembourg</option> <option value="LS">Lésotho</option> <option value="MO">Macao</option> <option value="MK">Macédoine</option> <option value="MG">Madagascar</option> <option value="MY">Malaisie</option> <option value="MW">Malawi</option> <option value="MV">Maldives</option> <option value="ML">Mali</option> <option value="MT">Malte</option> <option value="MA">Maroc</option> <option value="MQ">Martinique</option> <option value="MR">Mauritanie</option> <option value="YT">Mayotte</option> <option value="MX">Mexique</option> <option value="MD">Moldavie</option> <option value="MC">Monaco</option> <option value="MN">Mongolie</option> <option value="MS">Montserrat</option> <option value="MZ">Mozambique</option> <option value="MM">Myanmar (Birmanie)</option> <option value="NA">Namibie</option> <option value="NR">Nauru</option> <option value="NI">Nicaragua</option> <option value="NE">Niger</option> <option value="NG">Nigéria</option> <option value="NU">Niue</option> <option value="NO">Norvège</option> <option value="NC">Nouvelle Calédonie</option> <option value="NZ">Nouvelle-Zélande</option> <option value="NP">Népal</option> <option value="OM">Oman</option> <option value="UG">Ouganda</option> <option value="UZ">Ouzbékistan</option> <option value="PK">Pakistan</option> <option value="PW">Palau</option> <option value="PS">Palestine</option> <option value="PA">Panama</option> <option value="PG">Papouasie Nouvelle Guinée</option> <option value="PY">Paraguay</option> <option value="NL">Pays-Bas</option> <option value="PH">Philippines</option> <option value="PN">Pitcairn</option> <option value="PL">Pologne</option> <option value="PF">Polynésie française</option> <option value="PT">Portugal</option> <option value="PR">Puerto Rico</option> <option value="PE">Pérou</option> <option value="QA">Qatar</option> <option value="RO">Roumanie</option> <option value="GB">Royaume-Uni</option> <option value="RU">Russie</option> <option value="RW">Rwanda</option> <option value="CD">République Démocratique du Congo</option> <option value="DO">République dominicaine</option> <option value="CZ">République tchèque</option> <option value="RE">Réunion, île de la</option> <option value="EH">Sahara Ouest</option> <option value="KN">Saint-Kitts et Nevis</option> <option value="PM">Saint-Pierre et Miquelon</option> <option value="VC">Saint-Vincent et Les Grenadines</option> <option value="SH">Sainte-Hélène</option> <option value="LC">Sainte-Lucie</option> <option value="WS">Samoa</option> <option value="AS">Samoa américaine</option> <option value="SM">San Marino</option> <option value="ST">San Tomé et Principe</option> <option value="SC">Seychelles</option> <option value="SL">Sierra Leone</option> <option value="SG">Singapour</option> <option value="SK">Slovaquie</option> <option value="SI">Slovénie</option> <option value="SO">Somalie</option> <option value="SD">Soudan</option> <option value="LK">Sri Lanka</option> <option value="GS">St-George et les iles Sandwich</option> <option value="CH">Suisse</option> <option value="SR">Surinam</option> <option value="SE">Suède</option> <option value="SJ">Svalbard et Jan Mayen</option> <option value="SZ">Swaziland</option> <option value="SY">Syrie</option> <option value="SN">Sénégal</option> <option value="TJ">Tadjikistan</option> <option value="TZ">Tanzanie</option> <option value="TW">Taïwan</option> <option value="TD">Tchad</option> <option value="IO">Territoire britannique de l'Océan Indien</option> <option value="TF">Territoires français du Sud</option> <option value="TH">Thaïlande</option> <option value="TP">Timor Est</option> <option value="TG">Togo</option> <option value="TK">Tokelau</option> <option value="TO">Tonga</option> <option value="TT">Trinidad et Tobago</option> <option value="TN">Tunisie</option> <option value="TM">Turkmenistan</option> <option value="TC">Turks et iles Caicos</option> <option value="TR">Turquie</option> <option value="TV">Tuvalu</option> <option value="UA">Ukraine</option> <option value="UM">United States Minor Outlying Islands</option> <option value="UY">Uruguay</option> <option value="VU">Vanuatu</option> <option value="VA">Vatican, cité du</option> <option value="VN">Vietnam</option> <option value="VE">Vénézuela</option> <option value="WF">Wallis et Futuna</option> <option value="YU">Yougoslavie</option> <option value="YE">Yémen</option> <option value="ZM">Zambie</option> <option value="ZW">Zimbabwé</option> <option value="EG">Égypte</option> <option value="AE">Émirats arabes unis</option> <option value="EC">Équateur</option> <option value="ER">Érythrée</option> <option value="FM">États fédérés de Micronésie</option> <option value="US">États-Unis</option> <option value="ET">Éthiopie</option> </select>

These lists were compiled from a variety of sources, both online and offline, and no guarantee is made as to their accuracy. Please report any mistakes to dave@addedbytes.com.



]]>
Fri, 24 Oct 2003 23:15:17 +0100 http://www.addedbytes.com/blog/code/countries-select-box/ Dave Child ,,,,,,,,,