Membuat Form

file:///C:/Users/lenovo/Desktop/FifinForm.html

Image

Kode Form:

<html>
<head>
<title>Belajar Membuat Form </title>
</head>
<body>
<form action=” formulir.html” method=”get”>

Nama: <input type=”text” name=”nama” value=”Fifin” />
<br />

Alamat: <input type=”text” name=”Alamat” value=”Tidar” />
<br />

Jenis Kelamin : <input type=”radio” name=”jenis_kelamin” value=”laki-laki”/> Laki – Laki
<input type=”radio” name=”jenis_kelamin” value=”perempuan”checked /> Perempuan
<br />

Pekerjaan:
<select name=”Pekerjaan ” >
<option value=”Pekerjaan”> Pelajar</option>
<option>Guru</option>
<option value=”Businessman” checked>Bussinesman</option>
<option>Fresh Graduate</option>
</select>
<br />

Hobi: <input type=”checkbox” name=”hobi_facebook” /> Facebookan
<input type=”checkbox” name=”hobi_tidur” checked /> Tidur
<input type=”checkbox” name=”hobi_main” /> Main Computer
<br />
Komentar Anda:
<textarea name=”komentar” rows=”5″ cols=”20″>Silahkan isi Komentar anda</textarea>
<br />

<input type=”submit” value=”Kirim Data” >
<input type=”submit” value=”Ulangi” >
</form>
</body>
</html>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s