forked from KelvinMuriithi/html-css-js-recap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (69 loc) · 2.07 KB
/
index.html
File metadata and controls
72 lines (69 loc) · 2.07 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Student Data</title>
<link rel="stylesheet" href="style.css">
</head>
<style>
.student-form{
background-color: blueviolet;
padding: 20px;
border-radius: 10px;
font-family: Georgia, 'Times New Roman', Times, serif;
color: white;
}
</style>
<body>
<nav>
<a href="index.html">Home</a>
<a href="services.html">Services</a>
<a href="contact.html">Contact</a>
<a href="faqs.html">FAQs</a>
</nav>
<h1>Student Data Collection Form</h1>
<form action="" method="post" class="student-form">
<label for="name">Name:</label>
<input type="text" id="name" name="student-name">
<br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="student-email">
<br><br>
<label for="phone">Phone:</label>
<input type="text" id="phone" name="student-phone">
<br><br>
<label for="age">Age:</label>
<input type="number" id="age" name="student-age">
<br><br>
<label for="">Gender</label>
<input type="radio" id="id-male" name="gender" value="male">
<label for="male">Male</label>
<input type="radio" id="id-female" name="gender" value="female">
<label for="female">Female</label>
<button type="submit">Submit</button>
</form>
<h2>Submitted student data</h2>
<table class="student-data">
<tr>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
<th>Age</th>
</tr>
<!-- Sample data row -->
<tr>
<td>John Doe</td>
<td>john.doe@example.com</td>
<td>123-456-7890</td>
<td>20</td>
</tr>
<tr>
<td>Jane Smith</td>
<td>jane.smith@example.com</td>
<td>098-765-4321</td>
<td>22</td>
</tr>
</table>
</body>
</html>