成都创新互联网站制作重庆分公司

html5表单常用属性实例分析

这篇“html5表单常用属性实例分析”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“html5表单常用属性实例分析”文章吧。

成都创新互联公司2013年开创至今,是专业互联网技术服务公司,拥有项目网站建设、网站设计网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元白银做网站,已为上家服务,为白银各地企业和个人服务,联系电话:18980820575

html5新的表单增加了很多常用属性,使代码编写更加容易,不需要其他js插件,只需将验证属性配置在html代码中就可以完成表单验证。

以下是表单常用的验证html代码:

页面代码:

<!DOCTYPE html>

<头>

       

        </ title></p><p></ head></p><p><script type =“ text / javascript”></p><p>函数showValue(o)</p><p>{</p><p>document.forms [“ form1”] [“ sum”]。value = o.value;</p><p>}</p><p></ script></p><p><身体></p><p>   <form action =“” method =“ POST” id =“ form1” name =“ form1”></p><p>        <input type =“ text” autofocus =“ autofocus”必需的样式=“ [Az] {3}” name =“ auto”占位符=“必填项测试” /></p><p>       数字:<input type =“ number” name =“ demoNumber” min =“ 1” max =“ 100” step =“ 2” /></p><p>       邮箱:<input type =“ email” placeholder =“请输入邮箱” name =“ mail” /></p><p>        <input type =“ url” name =“ url” placeholder =“输入正确的网址” /></p><p>        <br /></p><p>        日期:<input type =“ date” name =“ time” /></p><p>        颜色:</p><p>        <input type =“ color” name =“ color” /> <br /></p><p>        <br /></p><p>        <input type =“ range” min =“ 0” max =“ 50” step =“ 5” name =“ rangedemo” value =“ 0” onchange =“ showValue(this)” /></p><p>        <output name =“ sum”> 0 </ output></p><p>        <br /></p><p>        <input type =“ submit” value =“提交表单” /></p><p>    </ form></p><p></ body></p><p></ html></p><p>以上就是关于“html5表单常用属性实例分析”这篇文章的内容,相信大家都有了一定的了解,希望小编分享的内容对大家有帮助,若想了解更多相关的知识内容,请关注创新互联行业资讯频道。</p> <br> 当前文章:html5表单常用属性实例分析 <br> 文章分享:<a href="http://cxhlcq.com/article/ghgepi.html">http://cxhlcq.com/article/ghgepi.html</a> </div> </div> </div> <div class="other container"> <h3>其他资讯</h3> <ul> <li> <a href="/article/cjhhep.html">谁说做网站不赚钱?这五个网站就日入千元</a> </li><li> <a href="/article/cjhhei.html">网站搭建后必须保持持续SEO优化</a> </li><li> <a href="/article/cjhhee.html">kvm桥接模式的示例代码</a> </li><li> <a href="/article/cjhheg.html">阿里微商会引起14万人“围观”</a> </li><li> <a href="/article/cjhhsh.html">稳定器为何物?为何大神纷纷叫好</a> </li> </ul> </div> <div class="footer"> <div class="foota container"> <div class="foot_nav fl col-lg-8 col-md-8 col-sm-12 col-xs-12"> <ul> <li class="col-lg-3 col-md-3 col-sm-3 col-xs-6"> <h3>网站制作</h3> <a href="http://www.cdxwcx.cn/" target="_blank">成都网站制作公司</a><a href="http://www.cxjianzhan.com/" target="_blank">网站制作</a><a href="https://www.cdcxhl.com/" target="_blank">成都网站制作</a><a href="http://www.myzwz.com/" target="_blank">绵阳网站制作</a><a href="http://chengdu.xwcx.net/mobile/" target="_blank">移动手机网站制作</a><a href="http://www.wjwzjz.com/" target="_blank">温江网站制作</a> </li> <li class="col-lg-3 col-md-3 col-sm-3 col-xs-6"> <h3>企业服务</h3> <a href="https://www.cdcxhl.com/service/ssl.html" target="_blank">ssl证书</a><a href="https://www.cdcxhl.com/weihu/chengdu.html" target="_blank">成都网站维护</a><a href="https://www.cdcxhl.com/shoulu/" target="_blank">网站快速收录</a><a href="https://www.cdcxhl.com/mianfei/jianzhan/" target="_blank">成都免费建站</a><a href="https://www.cdcxhl.com/hangyead/" target="_blank">一元广告</a><a href="https://www.cdcxhl.com/service/trademark.html" target="_blank">商标注册</a> </li> <li class="col-lg-3 col-md-3 col-sm-3 col-xs-6"> <h3>网站建设</h3> <a href="http://www.cdkjz.cn/fangan/finance/" target="_blank">金融行业网站建设方案</a><a href="http://www.cqwzjz.cn/" target="_blank">重庆网站建设</a><a href="https://www.cdxwcx.com/city/neijiang/" target="_blank">内江网站建设</a><a href="http://www.sczitong.cn/" target="_blank">梓潼网站建设</a><a href="http://m.cdcxhl.cn/shop/" target="_blank">成都商城网站建设</a><a href="http://www.scdazhu.cn/" target="_blank">大足网站建设</a> </li> <li class="col-lg-3 col-md-3 col-sm-3 col-xs-6"> <h3>服务器托管</h3> <a href="http://www.cdfuwuqi.com/jigui/" target="_blank">成都机柜租用</a><a href="https://www.cdcxhl.com/tuoguan/" target="_blank">IDC机房托管</a><a href="http://www.cdxwcx.cn/tuoguan/mianyang.html" target="_blank">绵阳机房租用</a><a href="https://www.cdcxhl.com/tuoguan/yidong/" target="_blank">移动服务器托管</a><a href="http://www.cdxwcx.cn/tuoguan/mianyang.html" target="_blank">绵阳机房托管</a><a href="https://www.cdcxhl.com/idc/gysx.html" target="_blank">贵阳三线机房</a> </li> </ul> </div> <div class="footar fl col-lg-4 col-md-4 col-sm-12 col-xs-12"> <p>全国免费咨询:</p> <b>400-028-6601</b> <p>业务咨询:028-86922220 / 13518219792</p> <p>节假值班:18980820575 / 13518219792</p> <p>联系地址:成都市太升南路288号锦天国际A幢1002号</p> </div> </div> <div class="footb"> <div class="copy container"> <div class="fl">Copyright © 成都创新互联科技有限公司重庆分公司 <a href="https://beian.miit.gov.cn/" target="_blank">渝ICP备2021005571号</a></div> <!--<div class="fr"><a href="https://www.cdxwcx.com/" target="_blank">成都网站建设</a>:<a href="https://www.cdcxhl.com/" target="_blank">创新互联</a></div>--> </div> </div> <div class="link"> <div class="container"> 友情链接:: <a href="https://www.cdcxhl.com/" target="_blank">成都网站建设</a> <a href="https://www.cdcxhl.com/city/chongqing.html" target="_blank">重庆网站建设</a> <a href="">四川网站建设</a> <a href="">重庆建设网站</a> <a href="https://www.cdxwcx.com/jifang/xiyun.html" target="_blank">移动服务器托管</a> <a href="http://www.cdfuwuqi.com/" target="_blank">成都服务器托管</a> <a href="https://www.cdcxhl.cn/" target="_blank">云服务器</a> <a href="http://www.cdhuace.com/" target="_blank">广告设计制作</a> <a href="https://www.cdcxhl.com/sheji/chongqing.html" target="_blank">重庆网页设计</a> <a href="https://www.cdcxhl.com/zuo/chongqing.html" target="_blank">重庆做网站</a> <a href="https://www.cdcxhl.com/zhizuo/chongqing.html" target="_blank">重庆网站制作</a> <a href="">重庆网站建设</a> <a href="">重庆网站公司</a> <a href="">渝中网站制作</a> <a href="">重庆网站设计</a> </div> </div> </div> <div class="foot"> <ul class="public-celan"> <li> <a href="https://p.qiao.baidu.com/cps3/chatIndex?siteToken=6ce441ff9e2d6bedbdfc2a4138de449e&speedLogId=162260383240185e3_1622603832401_02407&eid=6256368&reqParam=%7B%22from%22%3A1%2C%22sessionid%22%3A%22-100%22%2C%22siteId%22%3A%2211284691%22%2C%22tid%22%3A%22-1%22%2C%22userId%22%3A%226256368%22%2C%22ttype%22%3A1%2C%22pageId%22%3A0%7D" target="_blank" class="a1 db tc"> <img src="/Public/Home/img/icon-23.png" alt="" class="db auto"> <span class="span-txt">在线咨询</span> </a> </li> <li> <a href="tel:18980820575" class="a1 db tc"> <img src="/Public/Home/img/icon-24.png" alt="" class="db auto"> <span class="span-txt">电话咨询</span> </a> </li> <li> <a target="_blank" href="tencent://message/?uin=1683211881&Site=&Menu=yes" class="a1 db tc"> <img src="/Public/Home/img/icon-25.png" alt="" class="db auto"> <span class="span-txt">QQ咨询</span> </a> </li> <li> <a target="_blank" href="tencent://message/?uin=532337155&Site=&Menu=yes" class="a1 db tc public-yuyue-up"> <img src="/Public/Home/img/icon-26.png" alt="" class="db auto"> <span class="span-txt">预约顾问</span> </a> </li> </ul> </div> <div class="customer"> <dl class="icon1"> <dt> <a href="tencent://message/?uin=1683211881&Site=&Menu=yes"> <i class="iconT"><img src="/Public/Home/img/QQ.png" alt=""></i> <p>在线咨询</p> </a> </dt> </dl> <dl class="icon2"> <dt><i><img src="/Public/Home/img/weixin.png" alt=""></i><p>微信咨询</p></dt> <dd><img src="/Public/Home/img/ewm.png"></dd> </dl> <dl class="icon3"> <dt><i><img src="/Public/Home/img/dianhua.png" alt=""></i><p>电话咨询</p></dt> <dd> <p>028-86922220(工作日)</p> <p>18980820575(7×24)</p> </dd> </dl> <dl class="icon4"> <dt class="sShow"> <a href="tencent://message/?uin=244261566&Site=&Menu=yes"> <i><img src="/Public/Home/img/dengji.png" alt=""></i><p>提交需求</p> </a> </dt> </dl> <dl class="icon5"> <dt class="gotop"> <a href="#top"> <i><img src="/Public/Home/img/top.png" alt=""></i><p>返回顶部</p> </a> </dt> </dl> </div> </body> </html> <script> $(".con img").each(function(){ var src = $(this).attr("src"); //获取图片地址 var str=new RegExp("http"); var result=str.test(src); if(result==false){ var url = "https://www.cdcxhl.com"+src; //绝对路径 $(this).attr("src",url); } }); window.onload=function(){ document.oncontextmenu=function(){ return false; } } </script>