23 type values for form input tags?

After you have learned a lot of techniques, when you look back, you will find that you have been tortured by one and the same basic problem. The 23 type values ​​​​are not complete. Either this one is missing, or that one is missing. So what are the 23 types?


text        单行文本输入框
password    密码输入框
file        文件上传
radio       单选按钮
checkbox    复选框
hidden      隐藏的输入字段
button      按钮
image       图像形式的提交按钮
reset       重置按钮,重置按钮会清除表单中的所有数据
submit      提交按钮,提交按钮会把表单数据发送到服务器

color       调色板
tel         包含电话号码的输入域
email       包含email地址的输入域
url         包含URL地址的输入域
search      搜索域
number      包含数值的输入域
range       包含一定范围内数字值的输入域
date        选取日、月、年的输入域 
month       选取月、年的输入域
week        选取周、年的输入域
time        选取月、年的输入域
datetime    选取时间、日 月、年的输入域(UTC时间)
datetime-local  选取时间、日 月、年的输入域(本地时间)

So keep it in mind and don’t forget it! ! ! Keep up the good work~

Guess you like

Origin blog.csdn.net/smallmww/article/details/132330108
Recommended