/*
*Copyright (c)
*All rights reserved.
*文件名称: class8_form.html
*作者: 郭栋
*完成日期:2018年 8月14日
*版本号:v1.0
*问题描述:form表单练习
*输入描述:
*程序输出
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form action="">
<table align="center">
<caption style="font-size: 20pt">欢迎注册某度会员<hr/></caption>
<tr>
<td>用户名: </td>
<td><input type="text"></td>
</tr>
<tr>
<td>密码: </td>
<td><input type="posword"></td>
</tr>
<tr>
<td>确认密码: </td>
<td><input type="password"></td>
</tr>
<tr>
<td>请选择市: </td>
<td>
<select>
<optgroup label="中国">
<option value="1">北京</option>
<option value="2">上海</option>
<option value="3">广州</option>
</optgroup>
<optgroup label="外国">
<option value="1">英国</option>
<option value="2">美国</option>
<option value="3" selected>Chicago</option>
</optgroup>
</select>
</td>
</tr>
<tr>
<td>请选择性别:</td>
<td>
<input type="radio" id="male" name="sex" checked>
<label for="male">男</label>
<input type="radio" id="female" name="sex">
<label for="female">女</label>
<input type="radio" id="un_sure" name="sex">
<label for="un_sure">不好说</label>
</td>
</tr>
<tr>
<td>请选择职业:</td>
<td>
<input type="radio" id="student" name="profession" checked>
<label for="student">学生</label>
<input type="radio" id="teacher" name="profession">
<label for="teacher">教师</label>
<input type="radio" id="others" name="profession">
<label for="others">其他</label>
</td>
</tr>
<tr>
<td>请选择爱好:</td>
<td>
<fieldset>
<legend>你的爱好:</legend>
<input type="checkbox" id="basketball" checked>
<label for="basketball">打篮球</label>
<input type="checkbox" id="runing">
<label for="runing">跑步</label>
<input type="checkbox" id="reading">
<label for="reading">阅读</label>
<input type="checkbox" id="netting">
<label for="netting">上网</label>
</fieldset>
</td>
</tr>
<tr>
<td>备注:</td>
<td>
<textarea cols="30" placeholder="这里是备注内容" style="resize: none"></textarea>
</td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" value="提交">
<input type="reset" value="重置">
</td>
</tr>
</table>
</form>
</body>
</html>