写一段登入注册html代码
时间: 2023-05-28 21:02:02 浏览: 64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login/Register</title>
</head>
<body>
<h1>Login</h1>
<form action="" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username"><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password"><br><br>
<input type="submit" value="Login">
</form>
<h1>Register</h1>
<form action="" method="post">
<label for="new-username">Username:</label>
<input type="text" id="new-username" name="new-username"><br><br>
<label for="new-password">Password:</label>
<input type="password" id="new-password" name="new-password"><br><br>
<label for="confirm-password">Confirm Password:</label>
<input type="password" id="confirm-password" name="confirm-password"><br><br>
<input type="submit" value="Register">
</form>
</body>
</html>