文章目录
HTML 输入类型
本章描述 元素的输入类型。
输入类型:text
<input type=“text”> 定义供文本输入的单行输入字段
输入类型:password
<input type=“password”> 定义密码字段
输入类型:submit
<input type=“submit”> 定义提交表单数据至表单处理程序的按钮。
表单处理程序(form-handler)通常是包含处理输入数据的脚本的服务器页面。
在表单的 action 属性中规定表单处理程序(form-handler)
Input Type: radio
<input type=“radio”> 定义单选按钮。
Radio buttons let a user select ONLY ONE of a limited number of choices
Input Type: checkbox
<input type=“checkbox”> 定义复选框。
复选框允许用户在有限数量的选项中选择零个或多个选项。
Input Type: button
<input type="button> 定义按钮。
输入类型:number
<input type=“number”> 用于应该包含数字值的输入字段。
您能够对数字做出限制。
根据浏览器支持,限制可应用到输入字段。