html中输入控件的元素


html中输入控件的元素有三种:
    1,input输入
    2,textarea 创建一个多行的输入框
    3,select和option 下拉框
1.input中常用属性

    
    text文本框:<input type="text"/>
    password 密码:<input type="tpassword"/>
     button 按钮:<input type="button"value="登陆"/>
    submit 提交:<input type="submit"/>
    checkbox 复选框:<input type="checkbox"/> checked是默认选择
    date 日期:<input type="date"/>
    number 数字:<input type="number"/>
    week 周:<input type="week"/>
    hidden 隐藏:<input type="hidden"/>
    reset 重置:<input type="reset"/>
    file 上传文件:<input type="file"/>
    del 删除:<del>要删除文字</del>
    ins 下划线:<ins></ins>
    sup 上标:<sup></sup>
    sub 下标:<sub></sub>
    disabled:禁止输入
    piaceholder:显示框里文字
    radio 单选框:<input type="radio"name="sex"/>男
    <input type="radio"name="sex"/>女
2 .textarea:文本域<textarea name="" id="" cols="30" rows="10"></textarea>

3.select 下拉选择框:<select><option>内容</option></select>
    selected 下拉框中默认的选项 :<option selectte>内容</option>
    定义带标题的盒子:<fieldeset style="width px">
    <legend>标题</legend>
4.表格的合并

    <table> <tr>表示行 <th>表头 <td>单元格
    合并表格在td或者th中设置
    合并行是rowspan 合并单元格是colspan
    合并时要把多余的删去

原文地址:https://www.cnblogs.com/luofeng316148334/p/5002643.html