Name
<select> — NN 2, 3, 4, 6 MSIE 2,3, 4, 5.5, 6 HTML 4.01 WebTV Opera5
Synopsis
<select> ... </select>
Defines a multiple-choice menu or a scrolling list. It is a container
for one or more <option> tags. This element
may also contain one or more <optgroup>s.
Attributes
-
multiple This allows the user to select more than one
<option>from the list. When this attribute is absent, only single selections are allowed.
-
name=text Defines the name for select control; when the form is submitted to the form-processing application, this name is sent along with each selected option value.
-
size=number Specifies the number of rows that display in the list of options. For values higher than 1, the options are displayed as a scrolling list with the specified number of options visible. When
size=1is specified, the list is displayed as a pop-up menu.The default value is 1 when
multipleis not used. Whenmultipleis specified, the value varies by browser (but a value of 4 is common).
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access