No. | Nama |
---|---|
1. | Jamaludin |
2. | Andong |
3. | Andika Pratama |
Scriptnya adalah:
<html>
<head>
<title>tabel pertamaku</title>
</head>
<body>
<table align="center" border="2" bgcolor="grey" cellpadding="5" cellspacing="0" >
<caption align="top"><b>Tabel Pertama</b></caption>
<tr>
<th>No.</th>
<th>Nama</th>
</tr>
<tr>
<td>1.</td>
<td>Jamaludin</td>
</tr>
<tr>
<td>2.</td>
<td>Andong</td>
</tr>
<tr>
<td>3.</td>
<td>Andika Pratama</td>
</tr>
</table>
</body>
</html>
Membuat Tabel Menjadi Berwarna:
No. | Nama |
---|---|
1. | Jamaludin |
2. | Andong |
3. | Andika Pratama |
Scriptnya:
<html>
<head>
<title>mewarnai tabel</title>
</head>
<body>
<table align="center" border="2" bgcolor="cyan" cellpadding="5" cellspacing="0" >
<caption align="top"><b>Tabel Kedua</b></caption>
<tr bgcolor="green">
<th>No.</th>
<th>Nama</th>
</tr>
<tr bgcolor="yellow">
<td>1.</td>
<td>Jamaludin</td>
</tr>
<tr bgcolor="red">
<td>2.</td>
<td>Andong</td>
</tr>
<tr bgcolor="blue">
<td>3.</td>
<td>Andika Pratama</td>
</tr>
</table>
</body>
</html>
Tidak ada komentar:
Posting Komentar