Name

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

Synopsis

<option> ... </option>
                  

Defines an option within a select element (a multiple-choice menu or scrolling list). The end tag, although it exists, is usually omitted.

Attributes

selected

Makes this item selected when the form is initially displayed.

value= text

Returns a specified value to the forms-processing application instead of the <option> contents.

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.