Definisi dan Penggunaan
Tag <th> digunakan untuk menentukan kepala sell di dalam tabel HTML.
tabel HTML mempunyai 2 macam sell ;
- Header cells -berisi informasi pada kepala sell (created with the
<th> element)
- Standard cells - berisi data sell (created with the <td> element)
The text in <th> elements are bold and centered by default.
The text in <td> elements are regular and left-aligned by default.
Contoh ;
<table border="1">
<tr>
<th>Bulan
</th>
<th>Tabungan
</th>
</tr>
<tr>
<td>January</td>
<td>Rp 1.000.000</td>
</tr>
<tr>
<td>February</td>
<td>Rp 900.000</td>
</tr>
</table>
| Bulan |
Tabungan |
| January |
Rp 1.000.000 |
| February |
Rp 900.000 |
Artikel keren lainnya:
Belum ada tanggapan untuk "tag th"
Post a Comment
Tinggalkan komentar anda disini