<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表单标签</title>
<style type="text/css">
h2{
font-size="12px";
color:red;
}
</style>
</head>
<body>
<h2> 用户登录</h2>
<form method="post" action="save.php">
账号:
<input type="text" name="myName" />
<br>
密码:
<input type="password" name="pass" /><br>
<label> 性别:</label>
<label>男</label>
<input type="radio" value="1" name="gender" />
<label>女</label>
<input type="radio" value="2" name="gender" /><br>
<p>
你喜欢的水果(单选)<br>
<input type="radio" name="fruit" value="苹果">苹果
<input type="radio" name="fruit" value="桃子">桃子
<input type="radio" name="fruit" value="西瓜">西瓜
<input type="radio" name="fruit" value="以上都不喜欢">以上都不喜欢<br>
</p>
<div>
你喜欢的运动(多选)<br>
<input type="checkbox" name="sport1" value="跑步">跑步
<input type="checkbox" name="sport2" value="游泳">游泳
<input type="checkbox" name="sport3" value="登山">登山
<input type="checkbox" name="sport4" value="自行车">自行车
<input type="checkbox" name="sport5" value="乒乓球">乒乓球
</div>
<input type="submit" value="确定" name="submit" />
<input type="reset" value="重置" name="reset" />
</form>
</body>
</html>