HTML5新增表单选项
<form action="get">
<input type="color" name="color"> <br>
<input type="email" name="email"> <br>
<input type="url" name="url"> <br>
<input type="tel" name="tel"> <br>
<input type="range" name="range" min="100" max="200" value="100"> <br>
<input type="number" name="number" value="5" step="2"> <br>
<input type="search" name="search" id=""> <br>
<input type="date" name="date"> <br>
<input type="month" name="month"> <br>
<input type="week" name="week"> <br>
<input type="datetime-local" name="datatime"> <br>
<input type="submit">
</form>
HTML数据列表
<input type="text" list="mylist">
<datalist id="mylist">
<option value="手机"></option>
<option value="手表"></option>
<option value="手环"></option>
<option value="手模"></option>
</datalist>
HTML新的属性
<form action="get">
username<input type="text" name="username" autofocus> <br>
password<input type="password" name="password" required> <br>
email<input type="email" name="email" multiple> <br>
old username <input type="text" name="username" pattern="[0-9][A-Z]{3}"> <br>
<input type="submit" value="submit">
</form>