html写一个登录注册页面
时间: 2023-12-19 10:03:59 浏览: 28
好的,以下是一个简单的登录注册页面的示例 HTML 代码:
```
<!DOCTYPE html>
<html>
<head>
<title>Login/Register Page</title>
</head>
<body>
<h1>Login</h1>
<form action="login.php" method="POST">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required><br>
<input type="submit" value="Login">
</form>
<h1>Register</h1>
<form action="register.php" method="POST">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required><br>
<label for="confirm_password">Confirm Password:</label>
<input type="password" id="confirm_password" name="confirm_password" required><br>
<input type="submit" value="Register">
</form>
</body>
</html>
```
提示:上面的代码只是示例代码,实际应用中需要使用适当的安全措施来保护用户数据。