Javaweb的HTML表单标签的细节
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form action="http://www.baidu.com" method="get">
<input type="hidden" name="action" value="login"/>
<h1 align="center">用户注册</h1>
<table align="center">
<tr>
<td>用户名称:</td>
<td>
<input type="text" name="username" value="默认值"/>
</td>
</tr>
<tr>
<td>用户密码:</td>
<td>
<input type="password" value="abc" size="4"/>
</td>
</tr>
<tr>
<td>确认密码:</td>
<td>
<input type="password" value="abc" size="4"/>
</td>
</tr>
<tr>
<td>性别:</td>
<td>
<input type="radio" name="sex" checked="checked"/>男
<input type="radio" name="sex">女
</td>
</tr>
<tr>
<td>兴趣爱好:</td>
<td>
<input type="checkbox" checked="checked"/>Java
<input type="checkbox"/>Go
<input type="checkbox"/>python
</td>
</tr>
<tr>
<td> 国籍:</td>
<td>
<select>
<option>----请选择国籍---</option>
<option >中国</option>
<option>小日本</option>
<option>韩国</option>
</select>
</td>
</tr>
<tr>
<td>自我评价:</td>
<td>
<textarea rows="10" cols="20" >我才是默认值</textarea>
</td>
</tr>
</table>
<input type="reset" value="就这?"/><br/>
<input type="submit"/><br/>
<input type="button"/><br/>
<input type="file">
</form>
</body>
</html>