select

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

Syntax

HTML

<select attribute-name="attribute-value"></select>

Attributes

Global

NameValueDescription
disableddisabled | emptySpecifies that the element represents a disabled control
formIDREFIdentifies a form with which to associate the element
multiplemultiple | emptySpecifies that the element allows multiple values
namestringName part of the name/value pair associated with this element for the purposes of form submission
sizepositive integerNumber of options meant to be shown by the control represented by its element

Examples

disabled

form

multiple

name

size

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu