HTML中input元素的多种type属性

<input type="text" name = "">:单行输入框


<input type ="password" name = "">:密码输入框


<input type = "submit">:提交按钮


<input type = "reset">:重置按钮


<input type = "button" value = "按钮内容">:普通按钮


<input type = "radio" name = "" value = "":单选框


<input type = "checkbox" name ="" value = "" />:多选框


<input type = "number" minlength = "最小值" maxlength ="最大值" step = "每次选择的幅度" value="初始值"> :数字选择框


<input type = "date" >:日期选择框


<input type = "color">:颜色选择框


若在以上输入框中填写required属性则表示必填 填写paceholder = “内容 ”属性表示提示信息

posted on 2017-12-17 19:51  刘国忠  阅读(745)  评论(0编辑  收藏  举报

导航