-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.html
45 lines (41 loc) · 963 Bytes
/
form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
input {
padding: 10px 14px;
border-radius: 200rem;
&:focus {
outline-color: red;
}
&:disabled {
background-color: goldenrod;
}
}
.input-section {
display: flex;
flex-direction: column;
width: 300px;
&:hover {
background-color: blueviolet;
}
}
</style>
</head>
<body>
<form id="registration-form" method="post" action="form.html">
<div class="input-section">
<label for="nama">Nama</label>
<input id="nama" name="nama" maxlength="10" required>
</div>
<div class="input-section">
<label for="umur">Umur</label>
<input id="umur" name="umur" type="number" min="0">
</div>
<button type="submit">Submit</button>
</form>
</body>
</html>