html

来源:互联网 发布:如何开通淘宝附近可见 编辑:程序博客网 时间:2024/06/06 06:36
HTML 表单
       <form> 标签表示当前是一个表单区域  action 表示当前表单获取的值后,method提交方式。提交到服务器的地址
                    在标签里面写表单元素      表单是一个包含表单元素的区域。
       <label>用户名:</label>
        readonly 只读  disalebd 禁用   maxlength 文本的长度 placeholder 提示  value  实在的
        文本框    <input type="text" name=" "  id="inp"  disabled="disabled">   
        密码框    <input type ="password "      readongy   maxlength="6"  placeholder="密码"   >
                       
        <textarea> 标签定义一个多行文本域   cols 行 rows 列
       <button>  标签 按钮                   
           <input type="button"value="修改">  
           <input type="reset" value="重置">                 两种方式实现 
           <input type="submit" value="提交">
         
        select表示下拉框显示的大小,multiple表示可以多选    
        <select name="" id=" " size="3" multiple="multiple">
             <option> 中国 </option>
            <option> 美国</option>
            <option> 日本 </option>
        </select>
       <fieldset  style="width: 200px ">   
       
      单选按钮 
      <input type="radio" name="sex">
      <label>女 </label>
      <input type="radio" name="sex">
    
      多选按钮
      <input type="checkbox">
      
      HTML框架
        1<iframe> 标签规定一个内联框架
       
       表格
       table标签  定义一个表格  border="1"
        <tr> 行      <td>列        <th> 表头 自动加粗
        <thead>  表示表头
        <tbody id = "tb"> 表示中间内容
        <tfoot>  表示表尾
        thead tbody tfoot 语义化标签,有利于搜索引擎  可以快速搜索
        colspan  合并列   rowspan 合并行   
         colgroup 
0 0