---
title: "HTML5 type 新增的枚举值"
author: "xustar"
date: "2012-04-19T14:44:01Z"
tags: []
categories: ["Web前端"]
slug: "html5-type"
draft: false
lastmod: "2012-04-19T14:44:01Z"
id: 1490337
url: "https://xustar.iteye.com/blog/1490337"
---

Keyword  
Data type  
hidden  
任意字符  
text  
单行文本  
search  
单行文本  
tel  
单行文本  
url  
绝对地址  
email  
一个或多个email地址  
password  
单行文本  
datetime  
带有时区的时间  
date  
无时区的年月日时间  
month  
无时区的年月  
week  
无时区的周数  
time  
无时区的时间（小时，分钟，秒，毫秒）  
datetime-local  
无时区的日期与时间  
number  
数字值  
range  
范围：&lt;input type="range" min=0 max=100 step=20 value=50&gt;  
color  
8-bit表示的颜色  
checkbox  
checkbox  
radio  
radio  
file  
文件  
submit  
提交按钮  
image  
图片按钮  
reset  
n/a  
button  
n/a