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

option

Synopsis

<option>...</option>

Defines an option within a select element (a multiple-choice menu or scrolling list). The content of the option element is the value that is sent to the form processing application (unless an alternative value is specified using the value attribute).

Attributes

Core(id, class, style, title), Internationalization, Events

disabled=" disabled "

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

label=" text "

Allows the author to provide a shorter label than the content of the option. This attribute is not supported.

selected=" selected "

Makes this item selected when the form is initially displayed.

value=" text "

Defines a value to assign to the option item within the select control, to use in place of option contents.

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