Elemen form
reset
Format tag
HTML-nya adalah sebagai berikut :
<INPUT TYPE=RESET>
Berikut
adalah contoh form input yang dilengkapi tombol reset
| 
<!doctype
  html> 
<head> 
<title>reset
  </title> 
</head> 
<body> 
----
  Indentitas diri ---- 
<form > 
  Nama : <input type="text"
  name="nama"><br> 
  NIM: <input type="text"
  name="kelas" maxlength="8"><br> 
  <input type="reset"
  value="Reset"> 
  <input type="submit"
  value="Submit"> 
</form>
   
</body> 
</html> | 
Contoh form
sederhana
Berikut ini
adalah contoh dari sebuah halaman web yang berisi form yang sederhana : 
| 
<html>  
<head>  
  
  <title> Form 1 </title>  
</head>  
<body>  
<form name=”form1” method=”POST”
  action=”inputdata.php”>  
     Nama :
  <input type="text" name="nama">
  <br><br>  
     Kelas:
  <input type="text" name="kelas"
  maxlength="2"> <br><br>  
     No   : <input type="text"
  name="nomor" value="10"> <br><br>  
     Hobby:
  <input type="text" name="hobby" size="8">
  <br><br>  
     Password:
  <input type="password" name="password"> 
<br><br> 
<input type="submit"
  name="submit"
  value="Submit">   <input
  type="reset" name="reset"
  value="Reset">      
</form>  
</body>  
</html> | 
Apabila tombol “Submit” diklik, maka semua nilai yang
sudah diinputkan oleh pengguna akan di olah di dalam file PHP “inputdata.php”.
 
 
 
 
 
 
