<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form action="">
用户名: <input type="text" name="username"><br>
密码:<input type="password" name="password"><br>
邮箱:<input type="email"><br>
电话: <input type="tel"><br>
网址: <input type="url" name="" id=""><br>
数量: <input type="number" value="80" max="100" min="70"><br>
商品名称; <input type="search"><br>
范围: <input type="range" max="100" min="0" value="30"><br>
颜色: <input type="color"><br>
时间: <input type="time"><br>
日期: <input type="date"><br>
日期时间: <input type="datetime"><br>
<!-- 大多数浏览器不支持datetime,只有苹果下面的safari支持。 -->
日期时间: <input type="datetime-local"><br>
月份: <input type="month"><br>
星期: <input type="week"><br>
<input type="submit" > <br>
</form>
</body>
</html>
WEB-05-HTML5-表单新增的TYPE属性
猜你喜欢
转载自blog.csdn.net/qq_31741481/article/details/86567938
今日推荐
周排行