Selasa, 08 Oktober 2024
TUGAS FORM PENDAFTARAN
Oktober 08, 2024
No comments
BEFORE :
<!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>
<div class="container">
<div class="container"></div>
<h1>Selamat Datang di Web E-KTP </h1>
<p>Daftarkan E-KTP Sekarang!</p>
</div>
<h1>Pendaftaran E-KTP</h1>
<form>
<h3>Nama Peserta</h3>
<label for="name">Nama Lengkap</label>
<input type="text" id="firstname" name="firstname" required>
<label for="name">NO KK</label>
<input type="text" id="lastname" name="lastname" required>
<label for="age">Usia</label>
<input type="number" id="age" name="age" required>
</body>
</html>
AFTER :
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formulir Pendaftaran E-KTP</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
background-color: #f4f4f9;
background-size: 4;
}
form {
max-width: 600px;
margin: auto;
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
label {
display: block;
margin-bottom: 10px;
}
input[type="text"], input[type="date"], select {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 5px;
}
input[type="submit"] {
background-color: #28a745;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #218838;
}
</style>
</head>
<body>
<h2>Formulir Pendaftaran Pembuatan E-KTP</h2>
<form action="/submit-ktp" method="POST">
<label for="nama">Nomor KK:</label>
<input type="text" id="nomor" nomor="nomor_lengkap" required>
<label for="nik">NIK (Nomor Induk Kependudukan):</label>
<input type="text" id="nik" name="nik" required>
<label for="kewarganegaraan">Kewarganegaraan:</label>
<select id="kewarganegaraan" name="kewarganegaraan" required>
<option value="">Pilih Kewarganegaraan</option>
<option value="WNI">WNI</option>
<option value="WNA">WNA</option>
</select>
<input type="submit" value="Masuk">
<a href="./login.html">Login</a>
</form>
</body>
</html>














