1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 </head> 7 <body> 8 <form acion="" method=""> 9 10 用户名: 11 <input id="tar"type="text" name="usr" 12 placeholder="请输入账号"><br> 13 <br> 14 密 码: 15 <input type="password" name="psw" 16 placeholder="请输入密码"><br> 17 <br> 18 性 别: 19 <input type="radio" name="gender" value="1">女 20 <input type="radio" name="gender" value="2">男 21 <input type="radio" name="gender" value="3">保密<br> 22 <br> 23 爱 好: 24 <input type="checkbox" name="hobby" value="yinyue">音乐 25 <input type="checkbox" name="hobby" value="biancheng">编程 26 <input type="checkbox" name="hobby" value="youxi">游戏<br> 27 <br> 28 上传头像:<input type="file" value="上传"><br> 29 <br> 30 地 址: 31 <select> 32 <optgroup label="市"> 33 <option>桂林</option> 34 <option>广州</option> 35 <option>长沙</option> 36 <option>武汉</option> 37 </optgroup> 38 </select><br> 39 <br> 40 41 个人简介:<textarea style="height: 160px; 140px;"> 42 </textarea><br> 43 <br> 44 45 <input type="submit" value="提交"> 46 <input type="reset" value="重置"><br> 47 48 </body> 49 </html>