HTML <select> Tag
The HTML <select> tag is used for defining a select list.
- 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 name Assigns a name to the select list. size Specifies the number of rows to be visible at the same time. multiple Specifies that multiple selections can be made. 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.
- Global Attributes:
The <select> tag also supports the Global Attributes in HTML5
- Event Attributes:
The <select> tag also supports the Event Attributes in HTML5