The HTML <select> tag is used for defining a select list. The <select> tag is used with the <option> tag to produce a list of options that the user can choose from. The <optgroup> element can also be used for grouping those <option> items.

Example Code:
  <option value ="new york">New York</option>
  <option value ="london">London</option>
  <option value ="sydney" selected>Sydney</option>
  <option value ="auckland">Auckland</option>
Attribute Definition
autofocus Specifies that the drop-down list should automatically get focus when the page loads
disabled Disables the input control. The button won't accept changes from the user. It also cannot receive focus and will be skipped when tabbing
form Defines one or more forms the select field belongs to
multiple Specifies that multiple selections can be made
name Assigns a name to the select list.
required Specifies that the user is required to select a value before submitting the form
size Specifies the number of rows to be visible at the same time
Global Attributes:

The <select> tag also supports the Global Attributes in HTML5

Event Attributes:

The <select> tag also supports the Event Attributes in HTML5

Last updated on 2 August 2018 By Rene Spronk

View All HTML Tags

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.