| baris 1 kol 1 | baris 1 kol 2 | baris 1 kol 3 |
| baris 2 kol 1 | baris 2 kol 2 | baris 2 kol 3 |
| baris 3 kol 1 | baris 3 kol 2 | baris 3 kol 3 |
| baris 1 kol 1 | baris 1 kol 2 | baris 1 kol 3 |
| baris 2 kol 1 | baris 2 kol 2 | baris 2 kol 3 |
| baris 3 kol 1 | baris 3 kol 2 | baris 3 kol 3 |
| baris 1 kol 1 | baris 1 kol 2 | baris 1 kol 3 |
baris 2 kol 1 | baris 2 kol 2 | baris 2 kol 3 |
| baris 3 kol 1 | baris 3 kol 2 | baris 3 kol 3 |
cara menggabungkan kolom
Cara menggabungkan kolom pada baris tabel kita gunakan Atribut colspan .
Contoh
baris 1 kol 1 , kol 2 | baris 1 kol 3 | |
| baris 2 kol 1 | baris 2 kol 2 | baris 2 kol 3 |
| baris 3 kol 1 | baris 3 kol 2 | baris 3 kol 3 |
Jika ingin menggabungkan 3 kolom maka berikan Nlai "3" pada colspan
Contoh
baris 1 kol 1 , kol 2 , kol 3 | ||
| baris 2 kol 1 | baris 2 kol 2 | baris 2 kol 3 |
| baris 3 kol 1 | baris 3 kol 2 | baris 3 kol 3 |
enggabungkan kolom atas dan bawahnya menggunakan Atribut rowspan
Contoh
baris 1 kol 1 , baris 2 kol 1, baris 3 kol 1 | baris 1 kol 2 | baris 1 kol 3 |
| baris 2 kol 2 | baris 2 kol 3 | |
| baris 3 kol 2 | baris 3 kol 3 |
<table border="1">
<tr> <td rowspan="3">
baris 1 kol 1 , baris 2 kol 1, baris 3 kol 1 </td> <td> baris 1 kol 2</td> <td> baris 1 kol 3</td> </tr>
<tr> <td>baris 2 kol 2 </td> <td>baris 2 kol 3 </td> </tr>
<tr> <td>baris 3 kol 2 </td> <td>baris 3 kol 3 </td> </tr>
</table>
Tidak ada komentar:
Posting Komentar
Catatan: Hanya anggota dari blog ini yang dapat mengirim komentar.