html
<title>注册页面</title>
<style>
body {
font-family: Arial, sans-serif;
}
.container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
}
h2 {
text-align: center;
}
label {

display: block;
margin-bottom: 10px;
}
input[type="text"], input[type="password"] {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
}
input[type="submit"] {
width: 100%;
background-color: #4CAF50;
color: white;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
}

input[type="submit"]:hover {
background-color: #45a049;
}
</style>
<div class="container">
<h2>注册新账户</h2>
<form action="/register" method="post">
<label for="username">用户名:</label>
<input type="text" id="username" name="username" required><br><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password" required><br><br>
<label for="email">电子邮件:</label>
<input type="email" id="email" name="email" required><br><br>
<input type="submit" value="注册">
</form>
</div>
这个简单的注册页面包含了一个标题、一个表单和一些基本的样式,表单有三个输入字段:用户名、密码和电子邮件,以及一个提交按钮,表单的action属性设置为"/register",表示提交表单时将数据发送到服务器的"/register"路径。method属性设置为"post",表示使用POST方法发送数据,每个输入字段都有required属性,表示这些字段是必填的,你可以根据需要添加更多的输入字段或调整样式。









