属性:
1.1 Text 明文输入框
1.2 Password 暗文输入框
1.3 Value 默认值设置
1.4 name 表示将被提交到服务器
2.1 Redio 单选框(性别:< input type =“redio” >男)
2.2 name 多个 redio 的 name 值相同时,只能单选中一个
2.3 checked (单多选框都可用)值为 chacked(可省略但不建议) 设置默认单选
3.1 checkbox 多选框
3.2 Checked
4.1 Button 普通按钮可配合 js 完成一些操作(< input type =” button”)
4.2 value 设置值
4.2 Image 图片标签(< input type = “image” src = “地址”>)
5.1 reset 重置按钮,有默认标题“重置”
5,2 value 修改标题
6.1 submi 提交按钮(将表单数据提交到服务器)
6.2 服务器设置在<form>标签的 action 属性设置
7.1 hidden 不会显示出来,用于私下收集信息
Type 值 以下了解即可(兼容差):
1. Email 输入邮箱
2. url 输入网址
3. number 输入数字
4. date 选择时间
5. color 用取色版选取颜色
9.2 lable 标签
作用:使文字与输入框绑定
格式 1:<label for="001">id</label><input type="text" id="001"> --
推荐(可非对应)
格式 2:< label >
<input type="text" >