-
-
Notifications
You must be signed in to change notification settings - Fork 500
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (64 loc) · 1.89 KB
/
Copy pathindex.html
File metadata and controls
71 lines (64 loc) · 1.89 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>T-Shirt Order Form</title>
<!-- Link to CSS file -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<h1>T-Shirt Order Form</h1>
<form>
<!-- Customer Name -->
<div>
<label for="name">Customer Name</label>
<input
type="text"
id="name"
name="name"
pattern=".*\S.*\S.*"
title="Please enter at least 2 characters (name must contain at least 2 non-space characters)"
required
>
</div>
<!-- Email -->
<div>
<label for="email">Email Address</label>
<input
type="email"
id="email"
name="email"
title="Please enter a valid email address (e.g., name@example.com)"
required
>
</div>
<!-- Colour -->
<div>
<label for="colour">Choose a Colour</label>
<select id="colour" name="colour" title="Please select a colour from the list" required>
<option value="">Select a colour</option>
<option value="black">Black</option>
<option value="white">White</option>
<option value="blue">Blue</option>
</select>
</div>
<!-- Size -->
<div>
<label for="size">Choose a Size</label>
<select id="size" name="size" title="Please select a size from the list" 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">Order T-Shirt</button>
</form>
</main>
</body>
</html>