HTML5 添加新的标签 input属性

<!-- 新增 有语意标签 -->
<nav></nav> <!-- 导航标签  -->


<seclion></seclion> <!--区域标签-->


<footer></footer> <!--底部标签-->


<aside></aside><!--测边栏标签-->


<article></article><!--文章标签-->

input 标签属性

<input tyer="email" /> <!--输入邮箱-->

数字:

<input type = "numder"   /><!--数字--->
         <!--属性--->
         <!--step="5" 输入数字间隔 ---> 

网址:

  

<input type="url" /> <!---输入网址--> <!--http://xxxxxxxxx-->

时间:

  

<input type="time" /> <!--时分--->

日期:

  

<input type = "date" > <!--年月日-->

时间日期:

<input type = "datetime" /> <!--年月日时分    **在手机端可以实现-->

 

显示第几周:

<input type = "week"> <!--第几年的第几周-->

取色器:

<input type="color"> <!--取色器-->

 

<input type="range" name="points" min="1" max="10" /> <!--取值器-->

 

搜索:

<input type="search" /> <!--没有任何效果  只是语意性--->

手机号:

<input type="tel"  />   <!--手机端有显示   弹出数字-->

 

<!--输入文字自动匹配   文字选择-->
<input type = "text" list="dt"/>
<datalist id="dt">
    <option value="北京" >bj</option>
    <option>上海</option>
    <option>北北京</option>
    <option>湖南</option>
</datalist> 
 <!--input 与datalist 配合使用--->

 

 

 

<input type="text" placeholder="北京"> <!--站位符-->

<input type="text" autofocus> <!--自动获得光标-->

<input type="text" autocomplete="off"> <!--效果取消   (当鼠标放入输入框时显示以前输入的东西) -->



<input type="text" required>  <!--不可以为空--->

 

 

 

转载于:https://www.cnblogs.com/pqy521/p/9172292.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值