Advertisement
milhamriyn

tugas web ilham

Oct 23rd, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.43 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7.     <title>Document</title>
  8. </head>
  9. <body bgcolor="">
  10.     <h2> nama: M.ilham Riyanto</h2>
  11.     <h2>kelas: 3.B</h2>  
  12.     <h1>Belajar Form</h1>
  13.     <ol type="A">
  14.         <li><h2>form 1</h2></li>
  15.         <form action="" method="GET">
  16.         <label for="nama"> Nama :</label>
  17.         <input type="text" name="nama">
  18.         <label for="npm">NPM</label>
  19.         <input type="text" name="npm">
  20.         <input type="submit" name="simpan" value="save">
  21.         <input type="reset" value="Reset Data">
  22.     </form>
  23. <hr>
  24.     <h2><li>form 2</li></h2>
  25.     <form action="" method="GET">
  26.         <table>
  27.             <tr>
  28.                 <td><label for="Nama">Nama</label></td>
  29.                 <td>:</td>
  30.                 <td><input type="text" name="Nama" autocomplete="off"></td>
  31.             </tr>
  32.             <tr>
  33.                 <td><label for="npm">NPM</label></td>
  34.                 <td>:</td>
  35.                 <td><input type="text" name="npm"></td>
  36.             </tr>
  37.             <tr>
  38.                 <td><label for="password">password</label></td>
  39.                 <td>:</td>
  40.                 <td><input type="password" name="password"></td>
  41.             </tr>
  42.             <tr>
  43.                 <td colspan="2"></td>
  44.                 <td>
  45.                         <input type="submit" name="simpan" value="save">
  46.                         <input type="reset" value="Reset Data">
  47.                 </td>
  48.             </tr>
  49.         </table>
  50.     </form>
  51.     <hr>
  52.     <h2><li>form 3</li></h2>
  53.     <form action="proses.php" method="POST">
  54.         <table>
  55.             <tr>
  56.                 <td><label for="Nama">Nama</label></td>
  57.                 <td>:</td>
  58.                 <td><input type="text" name="Nama"></td>
  59.             </tr>
  60.             <tr>
  61.                     <td><label for="npm">NPM</label></td>
  62.                     <td>:</td>
  63.                     <td><input type="text" name="npm"></td>
  64.                 </tr>
  65.                 <tr>
  66.                     <td><label for="hp">No. Handphone</label></td>
  67.                     <td>:</td>
  68.                     <td><input type="number" name="hp"></td>
  69.                 </tr>
  70.                 <tr>
  71.                     <td><label for="gender">Gender</label></td>
  72.                     <td>:</td>
  73.                     <td><input type="radio" name="Gender" value="pria"> Pria
  74.                         <input type="radio" name="Gender" value="wanita"> Wanita
  75.                         <input type="radio" name="Gender" value="other"> Other
  76.                     </td>
  77.                 </tr>
  78.             <tr>
  79.               <td><label for="alamat">alamat</label></td>  
  80.               <td>:</td>
  81.               <td><textarea name="" id="" cols="18" rows="3"></textarea></td>
  82.             </tr>
  83.             <tr>
  84.                 <td><label for="time">waktu</label></td>
  85.                 <td>:</td>
  86.                 <td><input type="time" name="time"></td>
  87.             </tr>
  88.             <td><label for="jurusan">jurusan</label></td>
  89.             <td>:</td>
  90.             <td><select>
  91.                 <option value="TI">teknik informatika</option>
  92.                 <option value="TM">teknik mesin</option>
  93.                 <option value="PWk">teknik planologi</option>
  94.             </select></td>
  95.             <tr>
  96.                 <td><label for="hobi">Hobi</label></td>
  97.                 <td>:</td>
  98.                 <td><input type="checkbox" name="kerja" value="jogging"> jogging
  99.                 <input type="checkbox" name="kerja" value="bola"> volly
  100.             <input type="checkbox" name="kerja" value="ngaji">mengaji</td>
  101.             </tr>
  102.             <tr>
  103.                 <td><label for="tgl"> tanggal</label></td>
  104.                 <td>:</td>
  105.                 <td><input type="date" name="tgl"></td>
  106.             </tr>
  107.             <tr>
  108.                 <td><label for="file">input file</label></td>
  109.                 <td>:</td>
  110.                 <td><input type="file" name="file"></td>
  111.             </tr>
  112.             <tr>
  113.                 <td colspan="2"></td>
  114.                 <td>
  115.                         <input type="submit" name="simpan" value="save">
  116.                         <input type="reset" value="Reset Data">
  117.                 </td>
  118.             </tr>
  119.         </table>
  120.     </form>
  121.     <hr>
  122. </ol>
  123.    
  124.  
  125.    
  126. </body>
  127. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement