TABEL 1
nama file = tabel1.html
<html>
<head>
<title>Tabel1</title>
</head>
<body>
<h1>DEMO MEMBUAT TABEL</h1>
<hr>
<table>
<caption>Daftar Riwayat Hidup</caption>
<tr>
<th>No.</th>
<th>Nama</th>
<th>Umur</th>
<th>Pekerjaan</th>
</tr>
<tr>
<td>1.</td>
<td>Anggun</td>
<td>15 th</td>
<td>Pelajar</td>
</tr>
<tr>
<td>2.</td>
<td>Laeli</td>
<td>20 th</td>
<td>Wiraswasta</td>
</tr>
<tr>
<td>3.</td>
<td>Yayang</td>
<td>30 th</td>
<td>PNS</td>
</tr>
<tr>
<td>4.</td>
<td>Dita</td>
<td>33 th</td>
<td>Pengusaha</td>
</tr>
</table>
</body>
</html>
Hasil :
TABEL 2
nama file = tabel2.html
<html>
<head>
<title>Tabel1</title>
</head>
<body>
<h1>DEMO MEMBUAT TABEL</h1>
<hr>
<table border="1" width="70%" align="center" bgcolor="#cccccc
cellspacing="1" cellpadding="2">
<caption>Daftar Riwayat Hidup</caption>
<tr>
<th>No.</th>
<th>Nama</th>
<th>Umur</th>
<th>Pekerjaan</th>
</tr>
<tr>
<td>1.</td>
<td>Anggun</td>
<td>15 th</td>
<td>Pelajar</td>
</tr>
<tr>
<td>2.</td>
<td>Laeli</td>
<td>20 th</td>
<td>Wiraswasta</td>
</tr>
<tr>
<td>3.</td>
<td>Yayang</td>
<td>30 th</td>
<td>PNS</td>
</tr>
<tr>
<td>4.</td>
<td>Dita</td>
<td>33 th</td>
<td>Pengusaha</td>
</tr>
<tr>
<td>5.</td>
<td>Nadia</td>
<td>33 th</td>
<td>Pengusaha</td>
</tr>
<tr>
<td>6.</td>
<td>Lastri</td>
<td>16 th</td>
<td>Dokter</td>
</tr>
<tr>
<td>7.</td>
<td>Rena</td>
<td>33 th</td>
<td>Pengusaha</td>
</tr>
<tr>
<td>8.</td>
<td>Nurita</td>
<td>33 th</td>
<td>Pengusaha</td>
</tr>
<tr>
<td>9.</td>
<td>Rianti</td>
<td>33 th</td>
<td>Pengusaha</td>
</tr>
<tr>
<td>10.</td>
<td>Windi</td>
<td>33 th</td>
<td>Pengusaha</td>
</tr>
</table>
</body>
</html>
hasil: