html中表格与输入域常用元素总结

<!doctype html>
<html>
   <head>
      <meta http-equiv="content-type" charset="utf-8";>
      <title></title>
   </head>
   <body>
      <table>
         <thead>*表头
            <tr>
               <td>THEAD 中的文本</td>
            </tr>  
         </thead>

         <tfoot>*表脚
            <tr>
               <td>TFOOT 中的文本</td>
            </tr>
         </tfoot>
         
         <tbody>*表身
            <caption>这是一个表头</caption>
               <tr> 
                  <th colspan="几列"; rowspan="几行">表中的表头单元格</th>
                  <th>表中的表头单元格</th>
                  <th>表中的表头单元格</th>
                  <th>表中的表头单元格</th>
              </tr>
              <tr>
                 <td colspan="几列"; rowspan="几行">单元格</td>
                 <td>单元格</td>
                 <td>单元格</td>
                 <td>单元格</td>
             </tr>
          <tbody>
       </table>
       <input ontufocus="ture";*获得焦点 name="名称";type="输入域类型"; value="默认值";placeholder="背景文字";id="唯一地址/数据库关系值";>
       <textarea ontufocus="ture";*获得焦点 cols="可见列数";rows="可见行数";name="名称";id="唯一地址/数据库关系值";></textarea>
   </body>
</html>


你可能感兴趣的:(html,元素)