Name

<select> — NN: 2, 3, 4 &bull; MSIE: 2, 3, 4, 5 &bull; HTML 4 &bull; WebTV &bull; Opera3

Synopsis

<select> ... </select>

Defines a form element that can be a multiple-choice menu or a scrolling list. It is a container for one or more <option> tags.

Attributes

multiple

This allows the user to select more than one <option> from the list.

name=text

Defines the name for selected <option> values that, if selected, are passed on to the forms-processing application (required).

size=number

Controls the display of the list of options. When size=1 (and multiple is not specified), the list is displayed as a pull-down menu. For values higher than 1, the options are displayed as a scrolling list with the specified number of options visible.

Get HTML Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.