代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<form action="java-api.super-yx.com/register"method="post"enctype="multipart/form-date"></form>
<table border="1">
<tr>
<td align="center"colspan="2"bgcolor="grey">用户注册</td>
</tr> <br />
<tr>
<td align="right"><label for="username">用户名</label></td>
<td><input type="text" name="username"id="username"maxlength="20"/></td>
</tr><br />
<tr>
<td align="right"><label for="edit">密码</label></td>
<td><input type="password" name="password"id="password"maxlength="20"/></td>
</tr><br />
<tr>
<td align="right"><label for="gender">性别</label></td>
<td>
<input type="radio" name="gender"value="男"checked/>男
<input type="radio" name="gender"value="女"/>女
</td>
</tr><br />
<tr>
<td align="right"><label for="hobby">爱好</label></td>
<td>
<input type="checked" name="hobby"value="写作"/>写作
<input type="checked" name="hobby"value="听音乐"/>听音乐
<input type="checked" name="hobby"value="体育"/>体育
</td>
</tr><br />
<tr>
<td align="right">省份</td>
<td>
<select name="province" >
<option value="guangxi"selected>广西</option>
<option value="shanxi">山西</option>
</select>
</td>
</tr>
<tr>
<td align="right">自我介绍</td>
<td><textarea name="intro" rows="5" cols="25" placeholder="cy是大帅哥"></textarea></td>
</tr><br />
<tr>
<td colspan="2"align="center"bgcolor="grey">
<input type="submit" value="提交"/>
<input type="reset" value="重置"/>
</td>
</tr>
</table>
</body>
</html>
结果