您的位置:首页 > Web前端 > HTML5

html5邮箱的验证,html5url验证,html5number验证,html5range的验证

2016-11-30 13:32 211 查看
1.邮箱的验证

<form action="../js/test9.html" method="get">

    Email<input type="email" name="getEmail">

    <input type="submit" value="提交">

</form>

2.url验证

<form action="../js/test9.html" method="get">

    url<input type="url" name="getUrl" >

    <input type="submit" value="提交">

</form>

3.number验证

<form action="../js/test9.html" method="get">

    number<input type="number" name="getNumber" min="1" max="2" >

    <input type="submit" value="提交">

</form>

4.range的验证

<form action="../js/test9.html" method="get">

    range<input type="range" name="getRange" min="1" max="4" >

    <input type="submit" value="提交">

</form>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息