<!DOCTYPEhtml><html><body><!-- ********* Begin ********* --><formname="selectForm"method="post"action="myselect.jsp"><!-- ********* End ********* --><selectsize="1"><optionvalue="JZ">橘子</option><optionvalue="PG">苹果</option><optionvalue="XJ">香蕉</option></select></form></body></html>
2.创建输入控件
2.1 input控件相关概念
2.2创建文本框
<html><head><metacharset="utf-8"/><title>设置单行文本框</title></head><body><form>
姓名:
<!-- ********* Begin ******* --><inputtype="text"name="yourname"size="15"maxlength="5"><!-- ********* End ********* --></form></body></html>
2.3创建密码框
<html><head><metacharset="utf-8"/><title>设置密码框</title></head><body><form>
姓名:
<inputtype="text"name="yourname"size="15"maxlength="5"/><br>
密码:
<!-- ********* Begin ******* --><inputtype="password"name="yourpassword"size="15"value="12345"><!-- ********* End ********* --></form></body></html>
2.4创建单选按钮
<!DOCTYPEhtml><html><head><metacharset="utf-8"/><title>设置单行文本框</title></head><body><formaction=""method="post">
姓名:<inputtype="text"name="yourname"size="15"maxlength="5"/><br/>
密码:<inputtype="password"name="password"size="15"value="12345"/><br/>
国庆期间你最喜欢看的电影?<br/><!-- ********* Begin ********* --><inputtype="radio"name="Film"value="Film1">夺冠
<inputtype="radio"name="Film"value="Film2">我和我的祖国
<inputtype="radio"name="Film"value="Film3">姜子牙
<!-- ********* End ********* --></form></body></