完成如图所示:
示例:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>用户登录html</title>
</head>
<body>
<form action="/" method="post">
<table align="center">
<thead>
<!--<tr>-->
<!--<th>信息</th>-->
<!--<th>输入</th>-->
<!--</tr>-->
</thead>
<tbody>
<tr>
<td align="right">用户名:</td>
<td>
<input type="text">
</td>
</tr>
<tr>
<td align="right">密码:</td>
<td>
<input type="password">
</td>
</tr>
<tr>
<td align="right">性别:</td>
<td>
<input type="radio" name="gender">男
<input type="radio" name="gender">女
</td>
</tr>
<tr>
<td align="right">地址:</td>
<td>
<select name="city" id="city">
<option value="北京" selected="selected">北京</option>
<option value="天津">天津</option>
<option value="河北">河北</option>
<option value="山东">山东</option>
<option value="内蒙">内蒙</option>
</select>
</td>
</tr>
<tr>
<td align="right">爱好:</td>
<td>
<input type="checkbox" name="aihao">健身
<input type="checkbox" name="aihao">篮球
<input type="checkbox" name="aihao">排球
</td>
</tr>
<tr>
<td align="right">邮箱:</td>
<td>
<input type="email">
</td>
</tr>
<tr>
<td align="right">电话:</td>
<td>
<input type="text">
</td>
</tr>
<tr>
<td align="right">其他:</td>
<td>
<textarea name="other" id="" cols="30" rows="10"></textarea>
</td>
</tr>
<tr>
<td align="right"></td>
<td>
<input type="button" value="普通按钮">
<input type="button" value="注册">
<input type="reset" value="取消"><br/>
<input type="button" value="免费注册" style="background-color: darkgreen; color: white; border: white">
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>