Blogger Information
Blog 33
fans 0
comment 2
visits 37320
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
html5新增表单属性
cxw的博客
Original
957 people have browsed it

<!DOCTYPE html>

<html lang="en"><head> <meta charset="UTF-8"> <title>表单属性</title></head><body><form action=""><!-- 专业: <select name="" id=""> <option value="1">1</option> <option value="3">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select>--> <!--list慎用--> 专业: <input type="text" list="subjects"> <!--datalist创建数据集--> <!--option可以是单标签,也可以是双标签 lable是标签说明 --> <datalist id="subjects"> <option value="3" label="不会">2</option> <option value="3" >3</option> <option value="4">4</option> <option value="5">5</option> </datalist>网址 <input type="url" list="urls"> <datalist id="urls"> //如果input输入的type是url,那么value必须使用http <option value="http://www.baidu.com" label="不会">2</option> <option value="http://www.souhu.com" >3</option> <option value="http://www.360.com">4</option> <option value="http://www.google.com">5</option> </datalist> <!--output 语义增强,不是自己设计 --></form></body></html>

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post