用label有什么优势吗,直接这样不就行了
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>表单标签</title>
</head>
<body>
<form method="post" action="save.php">
用户名:<input type="text" name="username" placeholder="请输入账号" />
密码:<input type="password" name="pass" placeholder="请输入密码" />
<input type="submit" value="确定" name="submit" />
<input type="reset" value="重置" name="reset" />
</form>
</body>
</html>