制作可提交的用户注册表:
代码:
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form action="#">
<table border="10" cellspacing="0" cellpadding="12">
<tr>
<th>用户注册</th>
</tr>
<tr>
<td>用户名:<input type="text" id="username" name="username"></td>
</tr>
<tr>
<td>密 码:<input type="password" name="password"></td>
</tr>
<tr>
<td>性别<input type="radio" name="gender" value="男"> 男 <input type="radio" name="gender" value="女">女 </td>
</tr>
<tr>
<td>爱好:<input type="checkbox" name="=faver" value="打游戏"> 打游戏 <input type="checkbox" name="=faver" value="看书"> 看书 <input type="checkbox" name="=faver" value="运动"> 运动</td>
</tr>
<tr>
<td>省份:
<select name="address" id="address">
<option>陕西省</option>
<option>山西省</option>
<option>广东省</option>
<option>湖北省</option>
<option>四川省</option>
</select></td>
</tr>
<tr>
<td>自我介绍: <textarea name="commet" id="commet" cols="30" rows="10"></textarea></td>
</tr>
<tr>
<th><input type="submit"><input type="reset" value="重置"></th>
</tr>
</table>
</form>
</body>
</html>
运行结果: