前端学习-3
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>用户注册表</title>
</head>
<body>
<form action="register.php" method="post">
<fieldset>
<legend>注册</legend>
<div>
<label for="username">用户名:</label>
<input
type="text"
name="username"
id="username"
placeholder="用户名"
required
/>
</div>
<div>
<label for="password">密码:</label>
<input
type="password"
name="password"
id="password"
placeholder="数字+字母 不少于6位"
required
/>
</div>
<div>
<label for="email">邮箱:</label>
<input
type="email"
name="email"
id="email"
placeholder="username@email.com"
required
/>
</div>
<div>
<label for="birthday">生日:</label>
<input
type="date"
name="birthday"
id="birthday"
min="1949-01-01"
value="2022-01-01"
/>
</div>
<div class="sex">
<label for="male">性别:</label>
<input type="radio" name="sex" value="male" id="male" checked />
<label for="male">男</label>
<input type="radio" name="sex" value="male" id="female" />
<label for="female">女</label>
</div>
<div>
<label for="">爱好:</label>
<input
type="checkbox"
name="hobby[]"
value="trave"
id="trave"
/><label for="trave">旅游</label>
<input
checked
type="checkbox"
name="hobby[]"
value="program"
id="programe"
/><label for="program">编程</label>
<input
type="checkbox"
name="hobby[]"
value="shoot"
id="shoot"
/><label for="shoot">摄影</label>
<input
checked
type="checkbox"
name="hobby[]"
value="game"
id="game"
/><label for="game">游戏</label>
</div>
<div>
<label for="">年级</label>
<select name="edu" id="">
<option value="1" selected disabled>-请选择-</option>
<option value="2">高一</option>
<option value="3">高二</option>
<option value="4">高三</option>
</select>
</div>
<button>提交</button>
</fieldset>
</form>
</body>
</html>