html静态登录注册页面
时间: 2023-09-22 22:15:20 浏览: 169
html静态登录注册页面可以通过使用以下html标签来完成:form、input、label和button等标签。可以使用form标签来创建一个表单,通过input标签来创建输入框,使用label标签来添加标签说明,使用button标签来创建提交按钮。具体的代码实现可以根据需求进行设计和调整。
以下是一个简单的html静态登录注册页面的代码示例:
```html
<!DOCTYPE html>
<html>
<head>
<title>登录注册页面</title>
</head>
<body>
<h2>用户登录</h2>
<form>
<label for="username">用户名:</label>
<input type="text" id="username" name="username" placeholder="请输入用户名">
<label for="password">密码:</label>
<input type="password" id="password" name="password" placeholder="请输入密码">
<button type="submit">登录</button>
</form>
<h2>用户注册</h2>
<form>
<label for="newUsername">用户名:</label>
<input type="text" id="newUsername" name="newUsername" placeholder="请输入用户名">
<label for="newPassword">密码:</label>
<input type="password" id="newPassword" name="newPassword" placeholder="请输入密码">
<label for="confirmPassword">确认密码:</label>
<input type="password" id="confirmPassword" name="confirmPassword" placeholder="请确认密码">
<button type="submit">注册</button>
</form>
</body>
</html>
```