ホームページの作り方HP

ホームページの作り方を、 無料で初心者のために手打ちのHTMLタグとスタイルシートで解説してます

テーブル-タイトルHTMLタグ

テーブル(表)にタイトルをつける = 
<caption> 〜 </caption>
<caption align="*1"> 〜 </caption>
(*1=top,bottom)


 <caption>と</caption>の間に、タイトルをいれます。
 alignでタイトルを入れる位置を、表の上(top)か下(bottom)かをきめる。  

<< HTMLデータ >>

<table border="1">
 <caption>タイトル</caption>
 <tr> <th>1</th> <th>2</th> <th>3</th> </tr>
 <tr> <td>A1</td> <td>A2</td> <td>A3</td> </tr>
 <tr> <td>B1</td> <td>B2</td> <td>B3</td> </tr>
 <tr> <td>C1</td> <td>C2</td> <td>C3</td> </tr>
</table>
<table>
 <caption align="bottom">タイトル</caption>
 <tr> <th>1</th> <th>2</th> <th>3</th> </tr>
 <tr> <td>A1</td> <td>A2</td> <td>A3</td> </tr>
 <tr> <td>B1</td> <td>B2</td> <td>B3</td> </tr>
 <tr> <td>C1</td> <td>C2</td> <td>C3</td> </tr>
</table>  

<< ブラウザ表示 >>

タイトル
A1A2A3
B1B2B3
C1C2C3
 
タイトル
A1A2A3
B1B2B3
C1C2C3




ホームページの作り方HPTOPへ

画像
リンク 素材リンク HP作成リンク

Copyright (C) 2006-2007 ホームページの作り方HP  All rights reserved.