<option> ... </option>


attribute default description
id none specifies the unique ID
class none specifies the style sheet class
style none specifies the style sheet
name none specifies the name
value none specifies the value of the option to be sent to the server
label none spedifies the lavel for the option
disabled --- specifies that a pull-down menu is disabled
selected --- specifies that the option is initially selected


HTML 2, HTML 3.2, HTML 4.01 [STF], XHTML 1.0 [STF], XHTML 1.1, XHTML Basic
Microsoft (MSDN)
[IE3 or later][Firefox 1 or later][Safari 1 or later][Opera 3 or later][Netscape 2 or later]


The option tag specifies option items of the menu in a input form. Specify the selected attribute that makes a option item be initially selected.

Related Tags

form, optgroup, select

Sample Code [Output]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<form method="get" action="../bbs.cgi">
<select name="Fruits">