HTML5表单

<form action="" style="text-align: center">
    <!--
    H5提供的表单类型,具备数据验证的功能,但是验证的功能不严谨!
    后期会用正则表达式来处理!
    -->
    邮箱:
    <input type="email"/>
    <br/>
    网址:
    <input type="url"/>
    <br/>
    日期:
    <input type="date"/>
    <br/>
    时间:
    <input type="time"/>
    <br/>
    月份:
    <input type="month"/>
    <br/>
    周:
    <input type="week"/>
    <br/>
    数字:
    <input type="number"/>
    <br/>
    滑动:
    <input type="range"/>
    <br/>
    颜色:
    <input type="color"/>
    <br/>
    <input type="submit"/>
</form>

猜你喜欢

转载自blog.csdn.net/weixin_41481061/article/details/81205889
今日推荐