首页 > 其他分享 >HTML5新增input表单(HTML5)

HTML5新增input表单(HTML5)

时间:2022-10-20 10:33:21浏览次数:51  
标签:新增 邮箱 表单 HTML5 手机号码 input


HTML5新增input表单(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>HTML5新增input表单</title>
</head>

<body>
<!-- 验证下方功能的时候,必须填form表单域 -->
<form action="">
<ul>
<li>邮箱:<input type="email"></li>
<li>网址:<input type="url"></li>
<li>日期:<input type="date"></li>
<li>时间:<input type="time"></li>
<li>数量:<input type="number"></li>
<li>手机号码:<input type="tel"></li>
<li>搜索:<input type="search"></li>
<li>颜色:<input type="color"></li>
<!-- 当点击提交按钮的时候即可验证表单 -->
<li><input type="submit" value="提交"></li>
</ul>
</form>
</body>

</html>


标签:新增,邮箱,表单,HTML5,手机号码,input
From: https://blog.51cto.com/u_15837794/5778755

相关文章