select

The select element represents a control for selecting among a list of options.

Attributes

<select attribute-name="attribute-value"></select>
Name Value Description
disabled disabled | empty Specifies that the element represents a disabled control
form IDREF Identifies a form with which to associate the element - HTML5
multiple multiple | empty Specifies that the element allows multiple values - HTML5
name string Name part of the name/value pair associated with this element for the purposes of form submission
size positive integer Number of options meant to be shown by the control represented by its element

Global

Example | disabled

Example | form

Example | multiple

Example | name

Example | size

External

W3C HTML 4.01 Specification

W3C HTML5

W3C HTML 5.1