Selasa, 28 Februari 2017

Tugas 2 Pemrograman Web Kelas D

HTML & CSS Code:
<!DOCtype html>
<html>
<head>
<title>
 Pemesanan Tiket Kereta Api Online
 </title>

<style>
body {
 background-color: rgb(236, 232, 229);
}
h1 {
 color: rgb(104, 132, 146);
  font-family: arial;
}
form {
 text-align: left;
    font-family: segoe ui;
    font-size: 100%;
    margin: 20px 500px 20px 550px;
    padding: 20px;
}
table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}
#s {
 background-color: rgb(54, 150, 211);
 color : white;
 padding: 10px;
 margin: 5px 5px 0;
 border: none;
}
#b {
 background-color: rgb(226, 72, 8);
 color: white;
 padding: 10px;
 margin: 5px 5px 0;
 border: none;
}
#e {
 background-color: rgb(4, 57, 111);
 color: white;
 padding: 10px;
 margin: 5px 5px 0;
 border: none;
}
#h {
 background-color: rgb(209, 21, 19);
 color: white;
 padding: 10px;
 margin: 5px 5px 0;
 border: none;
}
tr:nth-child(even) {
    background-color: #dddddd;
}
</style>
</head>
<body>
 <h1><img src="http://1.bp.blogspot.com/-2s9cZJG_HFY/UJO3hmzNITI/AAAAAAAAAMk/M9ZevDExqp4/s400/Logo+Kereta+Api+baru+cdr.png" style="height:50px;"> Selamat Datang !!!</h1>  
 <form name = "input" action = "html_form_action.asp" method = "get">
  <pre>
  Nama Kereta  : <input type="text" name="train"><br>
  Tanggal Berangkat : <input type="date" name="arrive"><br>
  Tanggal Tiba  : <input type="date" name="go"><br>
  Jam Berangkat  : <input type="time" name="dtg"><br>
  Jam Tiba  : <input type="time" name="pgi"><br>
  Dari   : <input type="text" name="asal"><br>
  Ke   : <input type="text" name="tujuan"><br>
  Kelas   : <input type="" name=""><br>
    <input id="s" type="submit" value="Simpan"> <input id="b" type="submit" value="Batal">
  </pre>
 </form>
 <table>
  <tr>
    <th>No.</th>
    <th>Nama Kereta</th>
    <th>Jadwal Berangkat</th>
    <th>Jadwal Tiba</th>
    <th>Dari</th>  
    <th>Ke</th>
    <th>Harga (Kelas)</th>
    <th> </th>
  </tr>
  <tr>
    <td>1.</td>
    <td>Argo Parahyangan</td>
    <td>2014-04-22 - 06:00</td>
    <td>2014-04-22 - 08:45</td>
   <td>Gambir, Jakarta Pusat</td>
   <td>Bandung, Bandung</td>
   <td>Bisnis - 90.000</td>
   <td> <input id="e" type="submit" value="Edit"> <input id="h" type="submit" value="Hapus"></td>
  </tr>
  <tr>
    <td>2.</td>
 <td>Argo Parahyangan</td>
    <td>2014-04-23 - 13:01</td>
    <td>2014-04-23 - 15:00</td>
   <td>Gambir, Jakarta Pusat</td>
   <td>Surabaya</td>
   <td>Eksekutif - 100.000</td>
   <td> <input id="e" type="submit" value="Edit"> <input id="h" type="submit" value="Hapus"></td>
  </tr>
</table>
</body>

Hasil:





Nama : R. Sidqi Tri P.
NRP : 5115100153
Kelas : Pemrograman Web D

Tidak ada komentar:

Posting Komentar

Related Posts Plugin for WordPress, Blogger...