一、新增的类型
重点记住: number tel search 这三个
二、案例
<!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>新增的input类型</title>
<style>
label{
display: inline-block;
width: 120px;
text-align: center;
}
</style>
</head>
<body>
<form action="#">
<label for="">email:</label><input type="email"><br>
<label for="">url:</label><input type="url" name="" id=""><br>
<label for="">date:</label><input type="date"><br>
<label for="">time:</label><input type="time"><br>
<label for="">month:</label><input type="month"><br>
<label for="">week:</label><input type="week"><br>
<label for="">number:</label><input type="number"><br>
<label for="">tel:</label><input type="tel"><br>
<label for="">search:</label><input type="search"><br>
<label for="">color:</label><input type="color"><br>
<input type="submit" value="提交">
</form>
</body>
</html>
效果: