写一个登录注册页面的前端代码
时间: 2023-03-14 10:20:46 浏览: 77
我可以提供以下前端代码示例:<html>
<head>
<title>登录注册页面</title>
</head>
<body>
<div>
<h1>登录</h1>
<form action="/login" method="post">
<input type="text" name="username" placeholder="用户名" />
<input type="password" name="password" placeholder="密码" />
<input type="submit" value="登录" />
</form>
</div> <div>
<h1>注册</h1>
<form action="/register" method="post">
<input type="text" name="username" placeholder="用户名" />
<input type="password" name="password" placeholder="密码" />
<input type="password" name="password2" placeholder="确认密码" />
<input type="submit" value="注册" />
</form>
</div>
</body>
</html>