input
元素会根据不同的 type 属性,变化为多种形态。type属性值 表现形式
对应代码text 单行输入文本 <input type=text" />password 密码输入框 date 日期输入框 checkbox 复选框 radio 单选框 submit 提交按钮 reset 重置按钮 button 普通按钮 hidden 隐藏输入框 file 文本选择框 属性说明:name:表单提交时的“键”,注意和id的区别value:表单提交时对应项的值type=“button”, “reset”, "submit"时,为按钮上显示的文本年内容type=“text”,“password”,"hidden"时,为输入框的初始值type=“checkbox”, “radio”, “file”,为输入相关联的值checked:radio和checkbox默认被选中的项readonly:text和password设置只读disabled:所有input均适用