基本表单验证特性介绍
1.输入框内的灰色提示:placeholder
2.html5表单中新增类型:email、url、numbe、range、date(date、month、week、time、datetime、datetime-local)、search、color、tel等
3.文本框中,输入一次下一次再输入会自动提示:autocomplete
还可以运用此特性去掉Chrome记住密码后自动填充表单的黄色背景
设置表单属性autocomplete="off/on" 关闭自动填充表单,自己实现记住密码
<!-- 对整个表单设置 -->
<form autocomplete="off" method=".." action="..">
<!-- 或对单元一元素设置 -->
<input type="text" name="textboxnae" autocomplete="off">
4.如何实现下图:list 和 datalist