> ## :-: H5新增属性 ``` <form action="./index.html" method="get"> <!-- 新属性 - 兼容性不好 --> <!-- 提交 --> <input type="submit" value="get"> <!-- placeholder --- input提示信息 --> <input type="text" placeholder="请输入用户名"> <!-- 文件选择 --> <input type="file"> <!-- date --- 日期选择 - 兼容不好 --> <input type="date"> <!-- time --- 时间选择 --> <input type="time"> <!-- datetime-local --- 既有时间又有日期 - 兼容性不好 --> <input type="datetime-local"> <!-- number --- 只能输入数字 - 兼容性不好 --> <input type="number"> <!-- email --- 电子邮箱(效验) - 兼容性不好 --> <input type="email"> <!-- url --- 输入网址(效验) --> <input type="url"> <!-- color --- 颜色选择器 - 兼容性不好 --> <input type="color" value="color"> <!-- range ---- 选值调节器(1 ~ 100) --> <input type="range"> </form> ``` ![](https://box.kancloud.cn/b0e29ea3e9abcc513b589164776cd5c8_914x76.png)