使用form表单页面能输入用户名 密码 电话号码 身份证
时间: 2023-09-17 11:08:52 浏览: 46
可以使用如下代码来实现一个包含用户名、密码、电话号码和身份证的表单页面:
```
<form>
<label for="username">用户名:</label>
<input type="text" id="username" name="username" placeholder="请输入用户名"><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password" placeholder="请输入密码"><br>
<label for="phone">电话号码:</label>
<input type="tel" id="phone" name="phone" placeholder="请输入电话号码"><br>
<label for="idcard">身份证号:</label>
<input type="text" id="idcard" name="idcard" placeholder="请输入身份证号"><br>
<input type="submit" value="提交">
</form>
```
其中,`form`标签定义了一个表单,`label`标签用于关联输入框的提示文本。`input`标签定义了一个输入框,`type`属性指定了输入框的类型(如文本框、密码框、电话号码框等),`id`属性用于标识该输入框,`name`属性是该输入框在表单中的名称,`placeholder`属性是输入框的提示文本。最后的`input`标签定义了一个提交按钮,用于提交表单数据。