input 原有属性:

button 按钮

checkbox 单选框

radio 单选圈

file 文件

hidden 隐藏

image 图像

password 密码

reset 重置

submit 提交

text 文本

html5中input新标签

required 必须的 <input type="" required />此标签的值必须填写

search 搜索

datatime 时间

date 日期

time 时间

month 月份

week

url URL

range 等级滑动块

min="0" 滑动的最小值

max="100" 滑动的最大值

step="10" 每隔几个为一格

color 颜色

number 数字 step="0.01" min="0.01"(step 输入小数时加入 min="最小数字" )

email 邮箱


例:

<input type="date" name="atime" /><!--浏览器会自动验证日期类型-->