form表单标签及控件

时间:2025-01-14 12:47:10
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="#" type="text/CSS"> <title>表单</title> </head> <body> <table height="700" width="600" align="center" border="0" cellspacing="0" cellpadding= "0"> <caption><h2>账号注册界面</h2></caption> <tbody> <form action="url地址" method="提交方式" name="表单名称"> <tr> <td>性别</td> <td><input type="radio" checked="checked" name="sex"><input type="radio" name="sex"> </td> </tr> <tr> <td>生日</td> <td> <select> <option value="">请选择年</option> <option value="">1995</option> <option value="">1996</option> <option value="">1997</option> <option value="">1998</option> <option value="">1999</option> <option value="">2005</option> <option value="">2006</option> <option value="">2007</option> <option value="">2008</option> <option value="">2009</option> <option value="">2010</option> <option value="">2011</option> </select> <select> <option value="">请选择月</option> <option value="">1</option> <option value="">2</option> <option value="">3</option> <option value="">4</option> <option value="">5</option> <option value="">6</option> <option value="">7</option> <option value="">8</option> <option value="">9</option> <option value="">10</option> <option value="">11</option> <option value="">12</option> </select> <select> <option value="">请选择日</option> <option value="">1</option> <option value="">2</option> <option value="">3</option> <option value="">4</option> <option value="">5</option> <option value="">6</option> <option value="">7</option> <option value="">8</option> <option value="">9</option> <option value="">10</option> <option value="">11</option> <option value="">12</option> <option value="">13</option> <option value="">14</option> <option value="">15</option> </select> </td> </tr> <tr> <td>所在地区</td> <td> <select name="" id=""> <option value="">北京</option> <option value="">上海</option> <option value="">天津</option> <option value="">石家庄</option> <option value="">河南</option> </select> </td> </tr> <tr> <td>婚姻状况</td> <td> 未婚<input type="radio" name="marriage" checked="checked"> 离婚<input type="radio" name="marriage"> 丧偶<input type="radio" name="marriage"> </td> </tr> <tr> <td>学历</td> <td> <input type="text" value="小学"> </td> </tr> <tr> <td>月薪</td> <td> <input type="text" value="5000-8000"> </td> </tr> <tr> <td>手机号</td> <td> <input type="text" maxlength="11" value=""> </td> </tr> <tr> <td>昵称</td> <td> <input type="text"> </td> </tr> <tr> <td>喜欢的类型</td> <td> 可爱<input type="checkbox" name="love"> 御姐<input type="checkbox" name="love"> 温柔<input type="checkbox" name="love"> 贤惠<input type="checkbox" name="love"> 辣妹<input type="checkbox" name="love"> </td> </tr> <tr> <td>自我介绍</td> <td> <textarea name="" id="" cols="30" rows="10"></textarea> </td> </tr> <tr> <td></td> <td> <input type="text" value="请输入验证码"> <input type="reset" value="刷新"> </td> </tr> <tr> <td></td> <td> <input type="image" src="image/"> </td> </tr> <tr> <td></td> <td> <input type="checkbox"> <strong>我同意注册条款和会员加入标准</strong> </td> </tr> <tr> <td></td> <td> <a href="#"><p>我有账号,立即登录</p></a> </td> </tr> </form> </tbody> </table> </body> </html>