1. ini scrpitnya :
<!DOCTYPE html>
<html><style type="text/css">
<!--
body {
background-color: #FFCC66;
}
-->
</style>
<body>
<form action="">
<input type="radio" name="sex" value="male">Male<br>
<input type="radio" name="sex" value="female">Female
</form>
<p><b>Note:</b> pilih sesuai jenis kelamin.</p>
<!DOCTYPE html>
<html>
<body>
<form name="input" action="html_form_action.asp" method="get">
First name: <input type="text" name="FirstName" value="Barka"><br>
Last name: <input type="text" name="LastName" value="Satya"><br>
<input type="submit" value="Submit">
</form>
<p>jika diklik "Submit", form-data akan terkirim pada "html_form_action.asp".</p>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<form action="">
<select name="cars">
<option value="sangat baik">sangat baik</option>
<option value="baik">baik</option>
<option value="cukup" selected>cukup</option>
<option value="kurang">kurang</option>
</select>
</form>
</body>
</html>
</body>
</html>
</body>
</html>
2. hasilnya seperti ini :
0 komentar:
Posting Komentar