Ketika mandapat materi tentang pembuatan tabel, kami mendapat quis tentang materi ini, berikut soal dan jawaban yang saya berikan.
1.
jawab:
<html>
<head>
<title> Tugas 1</title>
</head>
<body>
<table border="1" width="500">
<tr>
<td align="center" colspan="2">1</td>
<td align="center" colspan="1">6</td>
</tr>
<tr>
<td align="center" colspan="1">2</td>
<td align="center" colspan="1">3</td>
<td align="center" rowspan="3">7</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td align="center" colspan="1">4</td>
<td align="center" colspan="1">5</td>
</tr>
</table>
</body>
</html>
2.
jawab:
<html>
<head>
<title>table_2</title>
</head>
<body>
<table border="1" width=500">
<tr>
<td><font face="firewalk36">Header kiri</td>
<td align="center" width="50%"><font face="firewalk36">header tengah</td>
<td align="right"> <font face="firewalk36">Header kanan</td>
</tr>
<tr>
<td valign="top" rowspan="2"><font face="firewalk36">Menu kiri</td>
<td align="center" colspan="2" height="200"><font face="firewalk36">Bagian isi</td>
</tr>
<tr>
<td align="center"><font face="firewalk36">Footer tengah</td>
<td align="right"><font face="firewalk36">Footer kanan</td>
</tr>
</font>
</table>
</body>
</html>
3.
jawab:
<html>
<head>
<title> Tugas 1</title>
</head>
<body>
<table border="1" width="500">
<tr>
<td align="center" colspan="1">1</td>
<td align="center" colspan="1">2</td>
<td align="center" colspan="1">3</td>
</tr>
<tr>
<td align="center" colspan="1">4</td>
<td align="center" colspan="1">5</td>
<td align="center" colspan="1">6</td>
</tr>
<tr>
<td align="center" colspan="3">7</td>
</tr>
</table>
</body>
</html>
4.
jawab:
<html>
<head>
<title> Tugas 1</title>
</head>
<body>
<table border="1" width="500">
<tr>
<td align="center" colspan="3">1</td>
</tr>
<tr>
<td align="center" colspan="1">2</td>
<td align="center" rowspan="2" width="300">4</td>
</tr>
<tr>
<td align="center" colspan="1">3</td>
</tr>
<tr>
<td align="center" colspan="3">7</td>
</tr>
</table>
</body>
</html>
0 komentar:
Posting Komentar