HTML傻瓜教程3

<input type=”表单类型” name=””

 

Input常见取值

type 

取值

password 密码框

 

button普通按钮

reset 重置按钮

<input type="button"value="注册" > <input type="reset">

 

sybmit:提交按钮 value“文字“

=“radio “name=””>n女 单选按钮

请选择您的性别:<input type="radio" name="gender">女

       <input type="radio" name="gender" checked>男

 

Checkbox多选按钮

请选择您的爱好:<input type="checkbox"name="aihao">足球

    <input type="checkbox"name="aihao">篮球

    <input type="checkbox"name="aihao">LOL

 

image 图像按钮

file 文件按钮 用户头像:<input type="file"></p>

hidden 隐藏域

email 邮件按钮/邮件域

邮箱:<input type="email">

 

color 颜色域

date 日期

time 时间

datetime-local 当前日期和时间

range 进度条

 

常见的属性

readonly只读

<option value=""readomly>请选择您的收货地址:</option>dbb44e8aeb2d4299a8f8bdd73918a7ef.jpgchecked 默认选者

请选择您的性别:<input type="radio" name="gender">女

       <input type="radio" name="gender" checked>男

 

disabled value=“” 禁用不可点击

 

autofocus 默认光标位置

密码:<input type="password" autofocus>

 

required 不可以空白提交

  • 9
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值