HTML forms Part 2
Hello sobat comering, kita lanjutkan form sebelumnya, kita akan menambahkan radio button, dan juga text area.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<h1>Input Your Identity</h1>
<form action="/action_page.php">
<label for="fname">Firstname:</label><br />
<input type="text" id="fname" name="fname" value="John" /><br />
<label for="lname">Lastname:</label><br />
<input type="text" id="lname" name="lname" value="Doe" /><br /><br />
<label for="lname">Address:</label><br />
<textarea id="textarea" name="textarea" rows="4" cols="50">
Jln. Asiah.
</textarea
>
<br /><br />
<input type="radio" id="male" name="gender" value="male" />
<label for="male">Male</label><br />
<input type="radio" id="female" name="gender" value="female" />
<label for="female">Female</label><br />
<input type="radio" id="other" name="gender" value="other" />
<label for="other">Other</label>
<hr />
<br />
<input type="submit" value="Submit" />
</form>
</body>
</html>
ini hasilnya.
Sekian Dulu. Selamat Mencoba. :D
Komentar
Posting Komentar