用户注册页面html源代码
时间: 2023-07-01 12:08:14 浏览: 48
以下是一个简单的用户注册页面的 HTML 源代码示例:
```html
<!DOCTYPE html>
<html>
<head>
<title>User Registration</title>
</head>
<body>
<h1>User Registration</h1>
<form method="post" action="register.php">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required><br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required><br><br>
<label for="confirm_password">Confirm Password:</label>
<input type="password" id="confirm_password" name="confirm_password" required><br><br>
<input type="submit" value="Register">
</form>
</body>
</html>
```
在这个示例中,用户需要输入用户名、电子邮件地址、密码和确认密码,然后单击“注册”按钮。此表单将通过 POST 方法提交到 register.php 页面进行处理。注意,所有输入字段都标记为“required”,这意味着用户必须填写它们才能提交表单。