Skip to Content
Web Design in a Nutshell, 3rd Edition
book

Web Design in a Nutshell, 3rd Edition

by Jennifer Robbins
February 2006
Intermediate to advanced
826 pages
63h 42m
English
O'Reilly Media, Inc.
Content preview from Web Design in a Nutshell, 3rd Edition

Name

select

Synopsis

<select>...</select>

Defines a multiple-choice menu or a scrolling list. It is a container for one or more option elements. This element may also contain one or more optgroup elements.

Attributes

Core(id, class, style, title), Internationalization, Events, onfocus, onblur, onchange

disabled="disabled"

Indicates that the select element is initially nonfunctional. It can be reactivated with a script.

multiple="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 "

Required. 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="1" is specified, the list is displayed as a pop-up menu.

The default value is 1 when multiple is not used. When multiple is specified, the value varies by browser (but a value of 4 is common).

tabindex=" number "

Specifies position in the tabbing order. Tabbing navigation allows the user to cycle through the active fields by using the Tab key.

xml:space="preserve"

XHTML only. Instructs XML processors to preserve the white space in the element.

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.
Start your free trial

You might also like

Beginning Responsive Web Design with HTML5 and CSS3

Beginning Responsive Web Design with HTML5 and CSS3

Jonathan Fielding

Publisher Resources

ISBN: 0596009879Errata Page