Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (101 loc) · 2.66 KB
/
Copy pathindex.html
File metadata and controls
115 lines (101 loc) · 2.66 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
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
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>My form exercise</title>
<meta name="description" content="T-shirt order form where customers choose their size and colour." />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
font-family: Arial, sans-serif;
background-color: white;
margin: 0;
padding: 40px;
}
.form-group {
margin-bottom: 20px;
}
h1 {
text-align: center;
margin-bottom: 25px;
}
.container {
max-width: 500px;
margin: auto;
background: #ffffff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
label {
display: block;
margin-bottom: 8px;
font-weight: bold;
}
input,
select,
button {
width: 100%;
padding: 10px;
font-size: 16px;
border: 1px solid #cccccc;
border-radius: 5px;
box-sizing: border-box;
}
button {
background-color: #000000;
color: white;
border: none;
cursor: pointer;
}
button:hover {
opacity: 0.9;
}
</style>
</head>
<body>
<header>
<h1>Product Pick</h1>
</header>
<main class="container">
<form>
<div class="form-group">
<label for="name">Name</label>
<input type="text" name="name" id="name" required minlength="2" pattern=".*\S.*\S.*"
placeholder="Enter your full name">
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" name="email" id="email" required placeholder="Enter your email">
</div>
<div class="form-group">
<label for="colour">T-Shirt Colour</label>
<select id="colour" name="colour" required>
<option value="">Select a colour</option>
<option value="black">Black</option>
<option value="white">White</option>
<option value="red">Red</option>
</select>
</div>
<div class="form-group">
<label for="size">T-Shirt Size</label>
<select id="size" name="size" required>
<option value="">Select a size</option>
<option value="xs">XS</option>
<option value="s">S</option>
<option value="m">M</option>
<option value="l">L</option>
<option value="xl">XL</option>
<option value="xxl">XXL</option>
</select>
</div>
<button type="submit">Place Order</button>
</form>
</main>
<footer>
<!-- change to your name-->
<p>By Liyema Mfengwana</p>
</footer>
</body>
</html>