创建一个包含表单的HTML页面,必须要包括如下字段: 名字,邮箱,密码,确认密码 。
时间: 2023-08-11 15:08:27 浏览: 38
以下是一个包含表单的HTML页面,其中包括名字、邮箱、密码和确认密码字段:
```html
<!DOCTYPE html>
<html>
<head>
<title>注册表单</title>
</head>
<body>
<h1>注册</h1>
<form>
<label for="name">名字:</label>
<input type="text" id="name" name="name" required><br>
<label for="email">邮箱:</label>
<input type="email" id="email" name="email" required><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password" required><br>
<label for="confirm_password">确认密码:</label>
<input type="password" id="confirm_password" name="confirm_password" required><br>
<input type="submit" value="提交">
</form>
</body>
</html>
```
这个页面包括一个表单元素,其中包含了名字、邮箱、密码和确认密码的输入框,以及一个提交按钮。注意,所有字段都需要填写,因此在输入框前面添加了 `required` 属性。