HTML code to build US states menu…

โ€”

by

in

I needed a list of states for a HTML form, so I went onto the net and found one. It says it is freely available to copy, so here it is.

HTML Code for states as abbreviations

<select name=”state” size=”1″>
<option selected value=””>State…</option>
<option value=”ZZ”>None</option>
<option value=””>– UNITED STATES –</option>
<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>
<option value=””>– CANADA –</option>
<option value=”AB”>Alberta</option>
<option value=”BC”>British Columbia</option>
<option value=”MB”>Manitoba</option>
<option value=”NB”>New Brunswick</option>
<option value=”NF”>Newfoundland and Labrador</option>
<option value=”NT”>Northwest Territories</option>
<option value=”NS”>Nova Scotia</option>
<option value=”NU”>Nunavut</option>
<option value=”ON”>Ontario</option>
<option value=”PE”>Prince Edward Island</option>
<option value=”PQ”>Quebec</option>
<option value=”SK”>Saskatchewan</option>
<option value=”YT”>Yukon Territory</option>
<option value=””>– AUSTRALIA –</option>
<option value=”AC”>Australian Capital Territory</option>
<option value=”NW”>New South Wales</option>
<option value=”NO”>Northern Territory</option>
<option value=”QL”>Queensland</option>
<option value=”SA”>South Australia</option>
<option value=”TS”>Tasmania</option>
<option value=”VC”>Victoria</option>
<option value=”WS”>Western Australia</option>
</select>
 

HTML code for states as full names

<select name=”state” size=”1″>
<option selected value=””>State…</option>
<option value=”None”>None</option>
<option value=””>– UNITED STATES –</option>
<option value=”Alabama”>Alabama</option>
<option value=”Alaska”>Alaska</option>
<option value=”Arizona”>Arizona</option>
<option value=”Arkansas”>Arkansas</option>
<option value=”California”>California</option>
<option value=”Colorado”>Colorado</option>
<option value=”Connecticut”>Connecticut</option>
<option value=”Delaware”>Delaware</option>
<option value=”Florida”>Florida</option>
<option value=”Georgia”>Georgia</option>
<option value=”Hawaii”>Hawaii</option>
<option value=”Idaho”>Idaho</option>
<option value=”Illinois”>Illinois</option>
<option value=”Indiana”>Indiana</option>
<option value=”Iowa”>Iowa</option>
<option value=”Kansas”>Kansas</option>
<option value=”Kentucky”>Kentucky</option>
<option value=”Louisiana”>Louisiana</option>
<option value=”Maine”>Maine</option>
<option value=”Maryland”>Maryland</option>
<option value=”Massachusetts”>Massachusetts</option>
<option value=”Michigan”>Michigan</option>
<option value=”Minnesota”>Minnesota</option>
<option value=”Mississippi”>Mississippi</option>
<option value=”Missouri”>Missouri</option>
<option value=”Montana”>Montana</option>
<option value=”Nebraska”>Nebraska</option>
<option value=”Nevada”>Nevada</option>
<option value=”New Hampshire”>New Hampshire</option>
<option value=”New Jersey”>New Jersey</option>
<option value=”New Mexico”>New Mexico</option>
<option value=”New York”>New York</option>
<option value=”North Carolina”>North Carolina</option>
<option value=”North Dakota”>North Dakota</option>
<option value=”Ohio”>Ohio</option>
<option value=”Oklahoma”>Oklahoma</option>
<option value=”Oregon”>Oregon</option>
<option value=”Pennsylvania”>Pennsylvania</option>
<option value=”Rhode Island”>Rhode Island</option>
<option value=”South Carolina”>South Carolina</option>
<option value=”South Dakota”>South Dakota</option>
<option value=”Tennessee”>Tennessee</option>
<option value=”Texas”>Texas</option>
<option value=”Utah”>Utah</option>
<option value=”Vermont”>Vermont</option>
<option value=”Virginia”>Virginia</option>
<option value=”Washington”>Washington</option>
<option value=”West Virginia”>West Virginia</option>
<option value=”Wisconsin”>Wisconsin</option>
<option value=”Wyoming”>Wyoming</option>
<option value=””>– CANADA –</option>
<option value=”Alberta”>Alberta</option>
<option value=”British Columbia”>British Columbia</option>
<option value=”Manitoba”>Manitoba</option>
<option value=”New Brunswick”>New Brunswick</option>
<option value=”Newfoundland and Labrador”>Newfoundland and Labrador</option>
<option value=”Northwest Territories”>Northwest Territories</option>
<option value=”Nova Scotia”>Nova Scotia</option>
<option value=”Nunavut”>Nunavut</option>
<option value=”Ontario”>Ontario</option>
<option value=”Prince Edward Island”>Prince Edward Island</option>
<option value=”Quebec”>Quebec</option>
<option value=”Saskatchewan”>Saskatchewan</option>
<option value=”Yukon Territory”>Yukon Territory</option>
<option value=””>– AUSTRALIA –</option>
<option value=”Australian Capital Territory”>Australian Capital Territory</option>
<option value=”New South Wales”>New South Wales</option>
<option value=”Northern Territory”>Northern Territory</option>
<option value=”Queensland”>Queensland</option>
<option value=”South Australia”>South Australia</option>
<option value=”Tasmania”>Tasmania</option>
<option value=”Victoria”>Victoria</option>
<option value=”Western Australia”>Western Australia</option>
</select>