html登录注册页面代码
时间: 2023-08-10 14:09:42 浏览: 48
以下是一个简单的 HTML 登录注册页面的代码示例:
```html
<!DOCTYPE html>
<html>
<head>
<title>登录注册页面</title>
</head>
<body>
<h1>欢迎登录</h1>
<form>
<label>用户名:</label>
<input type="text" name="username" required>
<br>
<label>密码:</label>
<input type="password" name="password" required>
<br>
<input type="submit" value="登录">
</form>
<h1>还没有账号?请注册</h1>
<form>
<label>用户名:</label>
<input type="text" name="username" required>
<br>
<label>密码:</label>
<input type="password" name="password" required>
<br>
<label>确认密码:</label>
<input type="password" name="confirm_password" required>
<br>
<input type="submit" value="注册">
</form>
</body>
</html>
```
这个页面包含两个表单,一个用于登录,一个用于注册。每个表单都包含输入用户名、密码和提交按钮的字段。输入字段都带有 `required` 属性,以确保用户填写所有必要的信息。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)