用html给我写一个用户登陆注册的页面
时间: 2023-11-27 08:06:24 浏览: 29
好的,以下是一个简单的用户登陆/注册页面的 HTML 代码:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>用户登陆/注册</title>
</head>
<body>
<h1>用户登陆/注册</h1>
<h2>登陆</h2>
<form action="login.php" method="post">
<label for="username">用户名:</label>
<input type="text" id="username" name="username"><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password"><br>
<input type="submit" value="登陆">
</form>
<h2>注册</h2>
<form action="register.php" method="post">
<label for="username">用户名:</label>
<input type="text" id="username" name="username"><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password"><br>
<label for="confirm_password">确认密码:</label>
<input type="password" id="confirm_password" name="confirm_password"><br>
<input type="submit" value="注册">
</form>
</body>
</html>
```
以上代码包括了一个简单的 HTML 页面,其中包括了一个登陆表单和一个注册表单。在实际应用中,你需要编写服务器端的代码来处理表单数据,并实现用户登陆/注册的功能。