HTML Tables : Dengan Caption

Jika ingin tabel dengan caption, anda bisa menggunakan tag <caption>.

Contoh :

<table border="1">
<caption>Contoh</caption>
<tr>
<th>Judul 1</th>
<th>Judul 2</th>
</tr>
<tr>
<td>baris</td>
<td>pertama</>
</tr>
<tr>
<td>baris</td>
<td>kedua</td>
</tr>
</table>

Jadinya :

Contoh
Judul 1 Judul 2
baris pertama
baris kedua

0 comments:


Posting Komentar


Creative Commons License
HTML Tables : Dengan Caption by Nano Yulianto is licensed under a Creative Commons Attribution 3.0 Unported License.
Based on a work at http://nanoyulianto.blogspot.com/2011/05/html-tables-dengan-caption.html.
Permissions beyond the scope of this license may be available at http://nanoyulianto.blogspot.com/.