-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (109 loc) · 3.09 KB
/
index.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registration Form</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
min-height: 100vh;
}
.container {
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
max-width: 400px;
width: 100%;
text-align: center;
margin-bottom: 30px;
}
label, h2, table {
text-align: left;
width: 100%;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"] {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
}
input[type="checkbox"] {
margin-right: 10px;
}
button {
background-color: #28a745;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
button:hover {
background-color: #218838;
}
#entries {
margin-top: 30px;
width: 100%;
max-width: 700px;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 10px;
border: 1px solid #ccc;
text-align: left;
}
</style>
</head>
<body>
<div class="container">
<form id="registration-form">
<h2>Registration Form</h2>
<label for="name">Name</label>
<input type="text" id="name" placeholder="Enter full name" required>
<label for="email">Email</label>
<input type="email" id="email" placeholder="Enter email" required>
<label for="password">Password</label>
<input type="password" id="password" placeholder="Enter password" required>
<label for="dob">Date of Birth</label>
<input type="date" id="dob" required>
<label>
<input type="checkbox" id="terms" required>
Accept Terms & Conditions
</label>
<button type="submit">Submit</button>
</form>
</div>
<div id="entries">
<h3>Entries</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Password</th>
<th>Dob</th>
<th>Accepted terms?</th>
</tr>
</thead>
<tbody id="entries-table-body">
</tbody>
</table>
</div>
<script src="index.js"></script>
</body>
</html>