Rabu, 10 Oktober 2012

Belajar Membuat HTML#1

Kali ini ane mau share tentang cara membuat form pada web statis langsung aja ya ane kasih code nya

HTML Code:
<html>
<head>
<title> Latihan 7-2 </title>
</head>
<body>
<FORM METHOD="POST" ACTION="mailto:monkeydeluffy7@yahoo.com">
<H4> FORM</H4>
<INPUT TYPE="text" NAME="var1" SIZE="30" VALUE="enter your name here">
<br> <br>
<B> Are you a student? </B>
<INPUT TYPE="checkbox" NAME="var2">
<br> <br>
<B> How old are you? </B>
<br>
<INPUT TYPE="radio" NAME="var3" Value="r1"> 10-15
<br>
<INPUT TYPE="radio" NAME="var3" Value="r2"> 16-20
<br>
<INPUT TYPE="radio" NAME="var3" Value="r3"> 21-25
<br> <br>
<B> Where do you come from? </B>
<br>
<SELECT NAME="var6" SIZE="1">
<OPTION VALUE="BG"> Bulgaria
<OPTION VALUE="UK"> United Kingdom
<OPTION VALUE="IND" SELECTED> Indonesia
</SELECT>
<br> <br>
<B> Your Comment </B>
<br>
<TEXTAREA NAME="var7" COLS="30 ROWS="6">
</TEXTAREA>
<br> <br>
<INPUT TYPE="submit" NAME="var4" VALUE="Send">
<INPUT TYPE="reset" NAME="var5" VALUE="Clear">
</FORM>
</body>
</html>
Hasil Jadi:
Latihan 7-2

FORM



Are you a student?

How old are you?
10-15
16-20
21-25

Where do you come from?


Your Comment


gimana? gampang kan? coba aja deh, tinggal buka notepad trus ketik dah code nya, save dengan nama yang kamu pengen tapi tambahin .html ya, simpan trus buka deh, liat hasil nya.

Tidak ada komentar:

Posting Komentar