Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
<!DOCTYPE html>
<html lang="en">
<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>Document</title>
</head>
<body>
<!-- !用户注册 -->
<form action="register.php" method="post" enctype="application/x-www-form-urlencoded" onsubmit="return false">
<fieldset>
<legend>基本信息</legend>
<div class="username">
<label for="name">用户名</label>
<input type="text" name="name" id="" required placeholder="用户名最少6个字符" />
</div>
<div class="password">
<label for="">密   码</label>
<input type="password" name="" id="" required />
</div>
<div class="age">
<label for="">年龄</label><input type="number" name="" id="" />
</div>
<div class="time">
<lable>生日</lable>
<input type="date" name="" id="" min="1949-10-1" />
</div>
</fieldset>
<fieldset>
<legend>预置内容</legend>
<div class="gender">
<label for="secret">性别:</label>
<input type="radio" name="gender" id="male" value="male" /><label for="male">男</label>
<input type="radio" name="gender" id="female" value="female" /><label for="female">女</label>
<input type="radio" name="gender" id="secret" value="secret" checked /><label for="secret">保密</label>
</div>
<div class="hobby">
<lable>爱好:</lable>
<input type="checkbox" name="" id="">游戏</input><input type="checkbox" name="" id="">item-2</input><input
type="checkbox" name="" id="">item-3</input><input type="checkbox" name="" id="">item-4</input>
</div>
<div class="edu">
<lable>学历</lable>
<select name="edu" id="edu">
<option value="" selected disabled>--请选择--</option>
<optgroup label="中等教育">
<option value="0">初中</option>
<option value="1">高中</option>
</optgroup>
<optgroup label="高等教育">
<option value="2">大专</option>
<option value="3">本科</option>
<option value="4">硕士</option>
<option value="4">博士</option>
</optgroup>
</select>
</div>
<div class="like"><label for="">喜欢的编程语言</label>
<input type="search" name="yuyan" list="detail" id="">
<datalist id="detail">
<option value="html">html</option>
<option value="css">css</option>
<option value="php"></option>
<option value="c">c++</option>
<option value="java">java</option>
<option value="js">js</option>
<option value="node">node</option>
</datalist>
</div>
</fieldset>
<button type="submit">提交</button>
<button type="reset">?</button>
</form>
</body>
</html>