html注册登录界面代码
时间: 2023-08-11 13:04:11 浏览: 45
以下是一个简单的 HTML 注册登录界面的代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>注册登录界面</title>
</head>
<body>
<h2>注册</h2>
<form action="register.php" method="post">
<label>用户名:</label>
<input type="text" name="username" required><br><br>
<label>密码:</label>
<input type="password" name="password" required><br><br>
<label>确认密码:</label>
<input type="password" name="confirm_password" required><br><br>
<input type="submit" value="注册">
</form>
<br>
<h2>登录</h2>
<form action="login.php" method="post">
<label>用户名:</label>
<input type="text" name="username" required><br><br>
<label>密码:</label>
<input type="password" name="password" required><br><br>
<input type="submit" value="登录">
</form>
</body>
</html>
```
这个代码包含了一个注册表单和一个登录表单。当用户点击注册按钮时,表单数据会被提交到 "register.php" 页面进行处理。当用户点击登录按钮时,表单数据会被提交到 "login.php" 页面进行处理。注意,这里的代码只是一个示例,你需要根据具体需求进行修改和完善。