Html-tfoot-tag

提供:Dev Guides
移動先:案内検索

HTML-<tfoot>タグ

説明

HTML <tfoot>タグは、テーブルにフッターを追加する際に使用されます。 tfootタグは、テーブルの各部分(ヘッダー、フッター、本文)を決定する際に、tbodyタグおよびtheadタグと組み合わせて使用​​されます。

<!DOCTYPE html>
<html>

   <head>
      <title>HTML tfoot Tag</title>
   </head>

   <body>
      <table style = "width:100%" border = "1">
         <thead>
            <tr>
               <td colspan = "4">This is the head of the table</td>
            </tr>
         </thead>

         <tfoot>
            <tr>
               <td colspan = "4">This is the foot of the table</td>
            </tr>
         </tfoot>

         <tbody>
            <tr>
               <td>Cell 1</td>
               <td>Cell 2</td>
               <td>Cell 3</td>
               <td>Cell 4</td>
            </tr>
            <tr>
               ...more rows here containing four cells...
            </tr>
         </tbody>

         <tbody>
            <tr>
               <td>Cell 1</td>
               <td>Cell 2</td>
               <td>Cell 3</td>
               <td>Cell 4</td>
            </tr>
            <tr>
               ...more rows here containing four cells...
            </tr>
         </tbody>

      </table>
   </body>

</html>

これは、次の結果を生成します-

グローバル属性

このタグは、− link:/html/html_attributes_reference [HTML属性リファレンス]で説明されているすべてのグローバル属性をサポートします

特定の属性

HTML <tfoot>タグは、次の追加属性もサポートしています-

Attribute Value Description
align right left center justify char Deprecated − Visual alignment.
char character Deprecated− Specifies which character to align text on. Used when align = "char"
charoff pixels or % Deprecated− Specifies an alignment offset (either in pixels or percentage value) against the first character as specified with the char attribute. Used when align = "char"
valign top middle bottom baseline Deprecated− Vertical alignment.

イベント属性

このタグは、− link:/html/html_events_reference [HTMLイベントリファレンス]で説明されているすべてのイベント属性をサポートします。

ブラウザのサポート

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes