022.HTML5中新增的表单控件
作者:互联网
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <form action="#"> <p> 颜色选择控件:<input type="color"> </p> <P> 日期选择控件:<input type="date"> </P> <p> 时间选择控件:<input type="time"> </p> <p> 电子邮件:<input type="email"> </p> <p> <input type="text" required> </p> <p> <input type="number" min="10" max="100"> </p> <p> <input type="text" list="province-list"> <datalist id="province-list"> <option value="山西1"> <option value="山西2"> <option value="山西3"> <option value="山西4"> </datalist> </p> <p> <input type="submit" value="提交"> </p> </form> </body> </html>
标签:控件,表单,选择,HTML5,022,Document 来源: https://www.cnblogs.com/LLL0617/p/16483085.html