常常搞忘的:单项选择name必须相同,用<input type="radio" name="sex" value="male">男 默认用checked
下拉列表用<select name="dosome"> 默认用selected
<option value=""></option>
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <title>人人网注册</title> 6 <h2 align=left>免费开通人人网账号</h2> 7 </head> 8 <body> 9 <form action="http://www.baidu.com" method="get"> 10 <table width="100%"> 11 <tr> 12 <td align="right">注册邮箱:</td> 13 <td><input type ="text" name="uid"></td> 14 </tr> 15 <tr> 16 <td></td> 17 <td>你还可以使用<a href="#">账号</a>注册或者<a href="#">手机号</a>注册</td> 18 </tr> 19 <tr> 20 <td align="right" >创建密码:</td> 21 <td><input type="password" name="password"></td> 22 </tr> 23 <tr> 24 <td align="right" >真实姓名:</td> 25 <td><input type="text" name="uname"></td> 26 </tr> 27 <tr> 28 <td align="right">性别:</td> 29 <td><input type="radio" name="sex" value="male" checked="checked">男 <input type="radio" name="sex" value="female" >女</td> 30 </tr> 31 <tr> 32 <td align="right" >生日:</td> 33 <td><select name="year"> 34 <option value="1991">1991</option> 35 <option value="1992">1992</option> 36 <option value="1993">1993</option> 37 </select>年 38 <select name="month"> 39 <option value="10">10</option> 40 <option value="11">11</option> 41 <option value="12">12</option> 42 </select>月 43 <select name="year"> 44 <option value="30">30</option> 45 <option value="29">29</option> 46 <option value="28">28</option> 47 </select>日 48 </td> 49 </tr> 50 <tr> 51 <td align="right" >我现在:</td> 52 <td><select name="dosome"> 53 <option value="study">正在上学</option> 54 <option value="work"selected = "selected">正在工作</option> 55 </select> 56 </td> 57 </tr> 58 <tr> 59 <td></td> 60 <td><img src="verycode.gif"><a href="#" >看不清换一张?</a></td> 61 </tr> 62 <tr> 63 <td align="right" >验证码:</td> 64 <td><input type="text" name="verycode"></td> 65 </tr> 66 <tr> 67 <td></td> 68 <td><input type="image" src="btn_reg.gif"></td> 69 </tr> 70 </table> 71 </form> 72 </body> 73 </html>