サイト内検索
...HTML・XHTMLタグ...
table
タイトル
- タイトルを付けるには、caption要素を指定します。
- 位置を指定しない場合は、テーブルの上部の中央に表示されます。
- テーブル内に1つだけ指定することができます。
- [使い方]
- <table>
- <caption>[タイトル]</caption>
- <tr>
- <th ></th>
- <td></td>
- </tr>
- </table>
要素 | 説明 |
---|---|
caption | タイトルをつけます。 |
サンプル
[bodyの中] <table border="1"><caption>[タイトル]</caption> <tr> <th>No1</th> <th>No2</th> </tr> <tr> <td>No3</td> <td>No4</td> </tr> </table> |
[ブラウザ上]
|