CSS3 表单
<form action="http://baidu.com"> <input type="text" placeholder="请输入用户名" required> <!-- 想兼容 Lable 做 for id--> <input type="email" autofocus="true"> <input type="tel" pattern="\d{1,5}"> <input type="number"> <input type="text"> <input type="url"> <input type="search"> <input type="range" min="0" max="100" value="0" step="50"> <input type="color" id="c"> <input type="datetime"> <input type="datetime-local"> <input type="time"> <input type="date"> <input type="week"> <input type="month"> <input type="text" autocomplete="off"> <input type="submit" value="提交" formaction="http://jd.com" > </form>