<body>
<h3 class="">用户注册</h3>
<!-- 表单 -->
<form action="check.php" method="POST" class="register">
<!-- 文本框 -->
<label for="usename">账号</label>
<!-- 控件 -->
<!-- blur:失去焦点事件 -->
<input type="text id=usename" name="usename" value="" placeholder="至少6位" autofocus required onblur="isEmpty(this)" />
<!-- 昵称 -->
<label for="nickname">昵称</label>
<!-- 控件 -->
<!-- blur:失去焦点事件 -->
<input type="text id=nickname" name="nickname" value="" placeholder="至少两字符" required onblur="isEmpty(this)" />
<!-- 邮箱型文本框一个,表单只能有一个焦点 -->
<label for="email"">邮箱</label>
<!-- 控件 -->
<input type="email id=email" name="email" value="" placeholder="****@email.com" required onblur="isEmpty(this)" />
<!-- 密码框 -->
<label for="password1"">密码</label>
<!-- 控件 -->
<input type="password id=password1" name="password1" value="" placeholder="至少六位且包含数字字母" required onblur="isEmpty(this)" />
<!-- 密码确认框 -->
<label for=”password2””>确认</label>
<!-- 控件 -->
<input type="password id=password2" name="password2" value="" placeholder="***********" required onblur="isEmpty(this)" />
<button>提交</button>
</form>
</body>