Anda di halaman 1dari 2

CONTOH TABEL

TABEL 1

<!DOCTYPE html>
<html>
<head>
<title>Belajar Membuat Tabel HTML</title>
</head>
<body>
<table>
<tr>
<td>Baris 1 kolom 1</td>
<td>baris 1 kolom 2</td>
</tr>
<tr>
<td>Baris 2 kolom 1</td>
<td>baris 2 kolom 2</td>
</tr>
</table>
</body>
</html>

TABEL 2
<!DOCTYPE html>
<html>
<head>
<title> tabelnya memiliki garis,</title>
</head>
<body>
table boder="1">
<tr>
<td>Baris 1 kolom 1</td>
<td>baris 1 kolom 2</td>
</tr>
<tr>
<td>Baris 2 kolom 1</td>
<td>baris 2 kolom 2</td>
</tr>

</table>

</body>

</html>
TABEL 3
<!DOCTYPE html>
<html>
<head>
<title> mengatur jarak teks dengan garis </title>
</head>
<body>
<table border="1" cellpadding="10">
<tr>
<td>Baris 1 kolom 1</td>
<td>baris 1 kolom 2</td>
</tr>
<tr>
<td>Baris 2 kolom 1</td>
<td>baris 2 kolom 2</td>
</tr>
</table>
</body>
</html>

TABEL 4
<!DOCTYPE html>
<html>
<head>
<title> Warna pada Sel dan Baris </title>
</head>
<body>
table border="1" cellpadding="10">
<tr>
<td bgcolor="yellow">Baris 1 kolom 1</td>
<td>baris 1 kolom 2</td>
</tr>
<tr bgcolor="#00ff80">
<td>Baris 2 kolom 1</td>
<td>baris 2 kolom 2</td>
</tr>
</table>
</body>
</html>
Bgcolor : merupakan attribute untuk menentukan warna pada halaman HTML. Background :
merupakan attribute untuk menambahkan gambar pada halaman HTML.
TABEL 5

Anda mungkin juga menyukai