<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>table</title>
</head>
<body>
<table cellspacing="5" border="1" width="700px" height="500px" align="center">
<tr align="center">
<th>表头1</th>
<th>表头2</th>
<th>表头3</th>
<th>表头4</th>
</tr>
<tr align="center">
<!-- colsapn跨列合并-->
<td colspan="2">21 22</td>
<!-- <td>22</td>-->
<td>23</td>
<td>24</td>
</tr>
<tr align="center">
<!-- rowspan 跨行合并-->
<td rowspan="2">31 41</td>
<td>32</td>
<td>33</td>
<td>34</td>
</tr>
<tr align="center">
<!-- <td>41</td>-->
<td>42</td>
<td>43</td>
<td>44</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>注册页面</title>
</head>
<body>
<h2>注册页面</h2>
<form action="regist_success.html" method="get">
用户名:<input type="text" name="username"> <br>
密码: <input type="password" name="password"> <br>
<!--radio单选框,name一致才是一组单选框, value为提交的值-->
<!-- checked属性为默认选中-->
性别: <input type="radio" name="gender" value="男" checked> 男 <input type="radio" name="gender" value="女">女 <br>
<!-- checkbox复选框,name一致为一组,value为提交的值 checked属性表示默认选中-->
爱好:<input type="checkbox" name="hobby" value="篮球" checked> 篮球
<input type="checkbox" name="bobby" value="足球"> 足球
<input type="checkbox" name="bobby" value="羽毛球"> 羽毛球
<input type="checkbox" name="bobby" value="乒乓球"> 乒乓球
<br>
喜爱的明星:
<!--regist_success.html?username=1234&password=1234&gender=男&hobby=篮球&star=蔡徐坤-->
<select name="star" id="">
<!-- value表示提交的内容,不添加vlaue时,使用文本内容为提交的value-->
<option value="蔡徐坤">蔡徐坤</option>
<!-- 在下拉列表中selected表示默认选中-->
<option value="马保国" selected="selected">马保国</option>
<option value="婷婷">婷婷</option>
<!--regist_success.html?username=1234&password=1234&gender=男&hobby=篮球&star=张三-->
<option >张三</option>
</select>
<br>
<input type="submit" value="注册">
<!-- 重置按钮-->
<input type="reset">
<br>
隐藏域: <input type="hidden" name="bookId" value="1001"> <br>
文件域 <input type="file">
</form>
</body>
</html>