サイト内検索

...HTML・XHTMLタグ...

table・セル

見出し

見出しを入れるには、table要素にth要素を指定します。

サンプル

《行に見出しを入れる場合》

[bodyの中]

<table border="1">
<tr>
<th>見出し</th>
<th>見出し</th>
</tr>
<tr>
<td>No</td>
<td>No</td>
</tr>
<tr>
<td>No</td>
<td>No</td>
</tr>
</table>

[ブラウザ上]

見出し見出し
NoNo
NoNo

《列に見出しを入れる場合》

[bodyの中]

<table border="1">
<tr>
<th>見出し</th>
<td>No</td>
<td>No</td>
</tr>
<tr>
<th>見出し</th>
<td>No</td>
<td>No</td>
</tr>
</table>

[ブラウザ上]

見出し NoNo
見出し NoNo

Copyright c 2007.10.01 luc All rights reserved.