サイト内検索

...HTML・XHTMLタグ...

table

タイトル

タイトルを付けるには、caption要素を指定します。
位置を指定しない場合は、テーブルの上部の中央に表示されます。
テーブル内に1つだけ指定することができます。
[使い方]
<table>
<caption>[タイトル]</caption>
<tr>
<th ></th>
<td></td>
</tr>
</table>
caption要素と行(thead要素)のグループとの組み合わせは、こちらをご覧ください。
caption要素と列(colgroup要素)のグループとの組み合わせは、こちらをご覧ください。
要素 説明
caption タイトルをつけます。

サンプル

[bodyの中]

<table border="1">
<caption>[タイトル]</caption>
<tr>
<th>No</th>
<th>No</th>
</tr>
<tr>
<td>No</td>
<td>No</td>
</tr>
</table>

[ブラウザ上]

[タイトル]
NoNo
NoNo

Copyright c 2007.10.01 luc All rights reserved.