10.3.1 HTML option 标签
option 标签 -- 代表选择列表的一个选择项
示例
<form
action
=
"dreamdu.php"
method
=
"post"
id
=
"dreamduform"
>
<fieldset>
<legend>
你对梦之都的感觉:</legend>
<label
for
=
"select"
>
你对梦之都的感觉</label>
<select
size
=
"1"
id
=
"select"
name
=
"select"
>
<option>
很全面,很好</option>
<option
selected
=
"selected"
>
一般般吧,还要努力</option>
<option>
有很多问题,不过还可以</option>
</select>
</fieldset>
<fieldset>
<legend>
你在梦之都想学习的编程语言:</legend>
<label
for
=
"multipleselect"
>
你在梦之都想学习的编程语言</label>
<select
size
=
"10"
multiple
=
"multiple"
id
=
"multipleselect"
name
=
"multipleselect"
>
<option
selected
=
"selected"
>
XHTML</option>
<option>
CSS</option>
<option>
JAVASCRIPT</option>
<option>
XML</option>
<option
selected
=
"selected"
>
PHP</option>
<option>
C#</option>
<option>
JAVA</option>
<option>
C++</option>
<option>
PERL</option>
</select>
</fieldset>
</form>