# Country option tags

The country_option_tags object creates an <option> tag for every country that is set up as a shipping zone in the shipping settings of the admin.

The `country_option_tags` object creates an `<option>` tag for every country that is set up as a shipping zone in the shipping settings of the admin.

Each `<option>` gets an attribute `data-provinces` with a JSON-encoded array of the country's subregions. If a country has no subregions, `data-provinces` is set to an empty array.

Wrap the `country_option_tags` object in `<select>` tags:

```liquid
<!-- Store ships only to Germany and the United Kingdom -->
<select name="country">
  {{ country_option_tags }}
</select>
```

```html
<!-- Store ships only to Germany and the United Kingdom -->
<select name="country">
  <option value="---" data-provinces="[]">---</option>
  <option value="Germany" data-provinces="[['Bavaria','Bavaria'],['Berlin','Berlin'],['Lower Saxony','Lower Saxony'],['North Rhine-Westphalia','North Rhine-Westphalia'],['Saxony','Saxony']]">Germany</option>
  <option value="United Kingdom" data-provinces="[]">United Kingdom</option>
</select>
```
