Kamis, 01 September 2016

Cara membuat table HTML 3 Contoh

<html>
<head>
<title>penggunaan ALING</title>
</head>
<body>
<table border="1">
<caption>Daftar wiraniaga</caption>
,tr>
<th codpan ="2" rowspan ="2">WIRANIAGA</th>
<th colspan ="3">KOTA</th>
</tr>
<tr>
<th>SEMARANG</th>
<tr> KUDUS</th<th>SOLO</th>
</tr>
<tr>
<th rowspan ="2">Jenis Kelamin</th>
<th>Pria</th>
<th aling= "right">30</td>
<th aling= "right">20</td>
<th aling= "right">30</td>
</tr>
<tr>
<th>Wanita</th>
<th aling= "right">20</td>
<th aling= "right">8</td>
<th aling= "right">18</td>
</tr>
</table>
</body>
</html>



<html>
<head>
<title>MEMBUAT DOKUMEN TABLE</title>
</head>
<body>
<table border=1 bgcolor=#4ff3300>
 <tr bgcolor=red>

 <td>data baris 1 kolom 1</td>
 <td>data baris 1 kolom 2</td>
 <td>data baris 1 kolom 3</td>

 </tr>

 <tr bgcolor=yellow>

 <td>data baris 2 kolom 1</td>
 <td>data baris 2 kolom 2</td>
 <td>data baris 2 kolom 3</td>

 </tr>

 <tr bgcolor=green>

 <td>data baris 3 kolom 1</td>
 <td>data baris 3 kolom 2</td>
 <td>data baris 3 kolom 3</td>

 </tr>

</table>
</body>
</html>




<html>
<head>
<title>TABLE</table>
</head>
<body>
berikut contoh table dengan rowspan dan clospan
<table width=728px border=2cellespacing=0 cellpadding=0>
<tr bgcolor=blue>
<td>baris 1 kolom 1</td>
<td>baris 1 kolom 2</td>
</tr>
<tr bgcolor=purple>
<td colspan=2>baris 2 kolom 1</td>
</tr>
<tr bgcolor=yeloww>
<td rowspan=2>baris 3 kolom 1</td>
</tr>
</table>
</body>
</html>



0 komentar:

Posting Komentar