Last Updated on April 26, 2023 by Roshan Parihar
HTML select tag is used to show select options inside forms.
The tag uses HTML options tag to include the options inside select tag.
Syntax
1 |
<select>Put options here...</select> |
1 2 3 4 5 6 7 8 9 |
<select name="country"> <option value="India">India</option> <option value="Australia">Australia</option> <option value="England">England</option> <option value="America">America</option> <option value="Kenya">Kenya</option> <option value="Netherland">Netherland</option> <option value="Malaysia">Malaysia</option> </select> |
Output
You should also read:
- HTML form tag to show forms.
- HTML button tag
- HTML input tag
Resources and References of HTML select tag
1. W3C Specification.
2. HTML living standard
3. W3C project using Github