Ini adalah tugas ke 2 pemograman WEB I yang ada 4 pilihan yaitu 2A, 2B, 2C, dan 2D, disini sudah ada semua tinggal kalian copy sesuai dengan stambuk kalian...ok..!
dicopy semua juga ngak apa.. hehehe..!
<head>
<title>Tugas 2B</title>
</head>
<body>
<h4 align="center">DAFTAR TARIF KAMAR</h4>
<table border="1" align="center" width="300">
<col style="color:yellow" bgcolor="blue" align="left">
<col span="2" style="color:blue" bgcolor="silver" align="right">
<tr>
<th rowspan=2>Type</th>
<th colspan=2>Tarif(Rp.)</th>
</tr>
<tr>
<th>Single</th>
<th>Double</th>
</tr>
<tr>
<td>Standar</td>
<td>75.000</td>
<td>100.000</td>
</tr>
<tr>
<td>Swite</td>
<td>125.000</td>
<td>170.000</td>
</tr>
<tr>
<td>Delux</td>
<td>185.000</td>
<td>200.000</td>
</tr>
<tr>
<td>President</td>
<td>350.000</td>
<td>500.000</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>tugas2</title>
</head>
<body>
<p><b>Pengaturan tabel dengan tag:</b></p>
<ul type="disc">
<li>< COL... > Atribut WIDHT saja
<li>< TABLE... > BORDER=2 RULES=GROUPS
<LI><THEAD>,<TBODY>,<TFOOT></LI>
</UL>
<TABLE border="2" rules="groups" width="300">
<thead>
<tr>
<th>Name</th>
<th>Food</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>Starflower</td>
<td>stir fied tofu</td>
<td>5.95</td>
</tr>
<tr>
<td>Miko</td>
<td>vegetable rice soup</td>
<td>4.95</td>
</tr>
<tr>
<td>Andy</td>
<td>hummus</td>
<td>3.95</td>
</tr>
<tr>
<td>Ping</td>
<td>french toast</td>
<td>5.95</td>
</tr>
</tbody>
<tfoot><tr>
<th colspan=2>Total</th>
<td>20.80</td>
</tr>
</tfoot>
</table>
</body>
</html>
<html>
<head>
<title>tugas2</title>
</head>
<body>
<p>SAMA DENGAN DIATAS <br />
TAMBAHAN ATRIBUT BGCOLOR PADA TAG<br />
< COL... > </p>
<TABLE border="2" rules="groups" width="300">
<COL bgcolor="blue">
<col bgcolor="magenta">
<col bgcolor="#66CCFF">
<thead bgcolor="#FFCC33">
<tr>
<th>Name</th>
<th>Food</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>Starflower</td>
<td>stir fied tofu</td>
<td>5.95</td>
</tr>
<tr>
<td>Miko</td>
<td>vegetable rice soup</td>
<td>4.95</td>
</tr>
<tr>
<td>Andy</td>
<td>hummus</td>
<td>3.95</td>
</tr>
<tr>
<td>Ping</td>
<td>french toast</td>
<td>5.95</td>
</tr>
</tbody>
<tfoot bgcolor="silver"><tr>
<th colspan=2>Total</th>
<td>20.80</td>
</tr>
</tfoot>
</table>
</body>
</html>
dicopy semua juga ngak apa.. hehehe..!
Tugas 2A
<html>
<head>
<title>Tugas 2A</title>
</head>
<body>
<h4 align="center">DAFTAR TARIF KAMAR</h4>
<table border="1" align="center" width="300">
<col bgcolor="magenta" align="left">
<col span="2" bgcolor="magenta" align="right">
<tr>
<th rowspan=2>Type</th>
<th colspan=2>Tarif(Rp.)</th>
<tr>
<th>Single</th>
<th>Double</th>
</tr>
<tr style="color:yellow" bgcolor="blue">
<td >Standar</td>
<td>75.000</td>
<td>100.000</td>
</tr>
<tr style="color:red" bgcolor="silver">
<td>Swite</td>
<td>125.000</td>
<td>170.000</td>
</tr>
<tr style="color:yellow" bgcolor="blue">
<td>Delux</td>
<td>185.000</td>
<td>200.000</td>
</tr>
<tr style="color:red" bgcolor="Silver">
<td>President</td>
<td>350.000</td>
<td>500.000</td>
</tr>
</table>
</body>
</html>
Tugas 2B
<html><head>
<title>Tugas 2B</title>
</head>
<body>
<h4 align="center">DAFTAR TARIF KAMAR</h4>
<table border="1" align="center" width="300">
<col style="color:yellow" bgcolor="blue" align="left">
<col span="2" style="color:blue" bgcolor="silver" align="right">
<tr>
<th rowspan=2>Type</th>
<th colspan=2>Tarif(Rp.)</th>
</tr>
<tr>
<th>Single</th>
<th>Double</th>
</tr>
<tr>
<td>Standar</td>
<td>75.000</td>
<td>100.000</td>
</tr>
<tr>
<td>Swite</td>
<td>125.000</td>
<td>170.000</td>
</tr>
<tr>
<td>Delux</td>
<td>185.000</td>
<td>200.000</td>
</tr>
<tr>
<td>President</td>
<td>350.000</td>
<td>500.000</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>tugas2</title>
</head>
<body>
<p><b>Pengaturan tabel dengan tag:</b></p>
<ul type="disc">
<li>< COL... > Atribut WIDHT saja
<li>< TABLE... > BORDER=2 RULES=GROUPS
<LI><THEAD>,<TBODY>,<TFOOT></LI>
</UL>
<TABLE border="2" rules="groups" width="300">
<thead>
<tr>
<th>Name</th>
<th>Food</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>Starflower</td>
<td>stir fied tofu</td>
<td>5.95</td>
</tr>
<tr>
<td>Miko</td>
<td>vegetable rice soup</td>
<td>4.95</td>
</tr>
<tr>
<td>Andy</td>
<td>hummus</td>
<td>3.95</td>
</tr>
<tr>
<td>Ping</td>
<td>french toast</td>
<td>5.95</td>
</tr>
</tbody>
<tfoot><tr>
<th colspan=2>Total</th>
<td>20.80</td>
</tr>
</tfoot>
</table>
</body>
</html>
<html>
<head>
<title>tugas2</title>
</head>
<body>
<p>SAMA DENGAN DIATAS <br />
TAMBAHAN ATRIBUT BGCOLOR PADA TAG<br />
< COL... > </p>
<TABLE border="2" rules="groups" width="300">
<COL bgcolor="blue">
<col bgcolor="magenta">
<col bgcolor="#66CCFF">
<thead bgcolor="#FFCC33">
<tr>
<th>Name</th>
<th>Food</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>Starflower</td>
<td>stir fied tofu</td>
<td>5.95</td>
</tr>
<tr>
<td>Miko</td>
<td>vegetable rice soup</td>
<td>4.95</td>
</tr>
<tr>
<td>Andy</td>
<td>hummus</td>
<td>3.95</td>
</tr>
<tr>
<td>Ping</td>
<td>french toast</td>
<td>5.95</td>
</tr>
</tbody>
<tfoot bgcolor="silver"><tr>
<th colspan=2>Total</th>
<td>20.80</td>
</tr>
</tfoot>
</table>
</body>
</html>
Comments
Post a Comment