<head>
<title>table</title>
</head>
<body>
berikut contoh tabel dengan rowspan dan colspan
<table width=80% border=2 cellspan=0 cellpadding=0 bgcolor=yellow>
<tr>
<td>baris 1 kolom 1</td>
<td>baris 1 kolom 2</td>
</tr>
<tr>
<td colspan=2>baris 2 kolom 1</td>
</tr>
<tr>
<td rowspan=2>baris 3 kolom 1</td>
<td>baris 3 kolom 2</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<tittle>penggunaan ALIGN ditulis oleh Agung Ihsanudin</tittle>
</head>
<body>
<table border="1">
<caption>Daftar wiraniaga</caption>
<tr>
<th colspan="2" rowspan="2">WIRANIAGA</th>
<th colspan="3">KOTA</th>
</tr>
<tr>
<th>SEMARANG</th>
<th>Kudus</th>
<th>Solo</th>
</tr>
<tr>
<th rowspan="2">Jenis Kelamin</th>
<th>Pria</th>
<th align="right">30</td>
<td align="right">20</td>
<td align="right">30</td>
</tr>
<tr>
<th>Wanita</th>
<td align="right">20</td>
<td align="right">8</td>
<td align="right">18</td>
</tr>
</table>
</body>
</html>
Tidak ada komentar:
Posting Komentar