<!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>表单</title>
</head>
<body>
<h2>用户注册</h2>
<form action="form.php" method="post" enctype="application/x-www-form-urlencoded" target="_blank" id="register">
<fieldset>
<legend>基本信息</legend>
<div class="uname">
<label for="name">用户名:</label>
<input type="text" id="name" placeholder="admin" name="name" required>
</div>
<div class="pas">
<lable for="password">密码:</lable>
<input type="password" name="password" value="123456" id="password" readonly>
<submit onclick="change_pas(event)">修改密码</submit>
</div>
<div class="email">
<label for="email">邮箱</label>
<input type="email" name="email" id="email" placeholder="user@email.com">
</div>
<div class="age">
<label for="age">年龄:</label>
<input type="number" name="age" id="age" value="18" min="18" max="80" step="10">
</div>
<div class="birthday">
<label for="birthday">生日:</label>
<input type="date" name="birthday" id="birthday" value="2022.1.1" min="2022.1.1" max="2022.1.6">
</div>
<div class="blog">
<label for="blog">url地址:</label>
<input type="url" name="blog" id="blog" placeholder="http://">
</div>
<div class="color">
<label for="color">取色器:</label>
<input type="color" name="color" id="color" onchange="this" value="#FFFF00">
<output>#FFFF00</output>
</div>
</fieldset>
<fieldset>
<legend>其他信息:</legend>
<input type="hidden" name="hid" value="2022.1.1">
<div class="upload">
<label for="file">上传照片</label>
<input type="file" name="user_pic" id="ipload">
<button type="button">上传</button>
</div>
<div class="range">
<label for="range">星级</label>
<input type="range" name="range" id="range" min="0" max="5" value="0" step="1" oninput="getStatus(this)">
<output>0</output>星
</div>
<div class="progress">
<label for="progress">进度</label>
<progress name="progress" max="100" value="10"></progress>
<output>10%</output>
<button type="button" onclick="handle(this)">+1</button>
</div>
</div>
</fieldset>
</form>
</body>
</html>