-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathName.html
More file actions
62 lines (60 loc) · 1.57 KB
/
Name.html
File metadata and controls
62 lines (60 loc) · 1.57 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Basic Table Form</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: bisque;
}
table {
width: 34%;
border-collapse: collapse;
margin: 0 auto;
}
th, td {
padding: 6px;
text-align: center;
border-bottom: 1px solid #000000;
}
th {
background-color: #f2f2f2;
}
input[type="text"], input[type="email"] {
width: 100%;
padding: 8px;
box-sizing: border-box;
}
</style>
</head>
<body>
<center>
<h2>Simple Table Form</h2>
<form action="#" method="post">
<table border="1">
<tr>
<th>Label</th>
<th>Input field</th>
</tr>
<tr>
<td>Name</td>
<td><input type="text" name="name" required></td>
</tr>
<tr>
<td>Email</td>
<td><input type="email" name="email" required></td>
</tr>
<tr>
<td>Message</td>
<td><input type="text" name="message" required></td>
</tr>
<tr>
<td colspan="2" style="text-align: center;"><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
</center>
</body>
</html>