- HTML表单:
HTML表单用于收集用户的输入信息。HTML表单表示文档中的一个区域,此区域包含交互控件,将用户收集到的信息发送到web服务器。
<form action="">
Username: <input type="text" name="user"><br>
Password: <input type="password" name="password">
</form>
HTML表单元素是允许用户在表单中输入内容,比如文本域(text area)、下拉列表(select)、单选框(radio-buttons)、复选框(checkbox)等。
1)、文本:通过<input type="text" >标签来设定。
<form>
name: <input type="text" name="name"><br>
</form>
2&#x