Name

<select> — NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3

Synopsis

                     <select> ... </select>
                  

Defines 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 Web Design in a Nutshell 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.