<head>
<title>注册页面</title>
</head>
<body>
<form action="" method="post">
<table>
<tr><th colspan="2">注册用户</th></tr>
<tr>
<td>姓名:</td>
<td><input type="text" name="userName" /></td>
</tr>
<tr>
<td>性别:</td>
<td>男:<input type="radio" name="userSex" value="男" checked="checked">女:<input type="radio" name="userSex" value="女"></td>
</tr>
<tr>
<td>年龄:</td>
<td><select name="userAge">
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="24">24</option>
</select></td>
</tr>
<tr>
<td>个人简介:</td>
<td><textarea name="userInfo" cols="30" rows="15"></textarea></td>
</tr>
<tr>
<td>联系电话:</td>
<td><input type="text" name="telephone" /></td>
</tr>
<tr>
<td>照片:</td>
<td><input type="file" name="userPhoto" /></td>
</tr>
</table>
</form>
</body>
</html>
一个普通的用户注册表单表格,涉及到表头,行,单元格的用法,外加表单使用
<form method='post' action=''><table>
<tr>
<th>用户名</th>
<td>
<input type='text' name='username' placeholder='请输入用户名'/>
</td>
</tr>
<tr>
<th>密码</th>
<td>
<input type='text' name='password' placeholder='请输入密码'/>
</td>
</tr>
<tr>
<td colspan=2>
<input type='submit' value='注册'/>
</td>
</tr>
</table>
</form>