-
-
Notifications
You must be signed in to change notification settings - Fork 432
Expand file tree
/
Copy pathindex.html
More file actions
67 lines (67 loc) · 2.18 KB
/
index.html
File metadata and controls
67 lines (67 loc) · 2.18 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
<!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="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<!-- -
[x] My form is semantic html.
- [s] All inputs have associated labels.
- [x] My Lighthouse Accessibility score is 100.
- [x] I require a valid name. I have defined a valid name as a text string of two characters or more.
- [x] I require a valid email.
- [x] I require one colour from a defined set of 3 colours.
- [x] I require one size from a defined set of 6 sizes.-->
<body>
<header>
<h1>Product Pick</h1>
</header>
<main>
<form>
<div>
<label for="name">Customer Name</label>
<input type="text" name="name" id="name" placeholder="Enter Name" minlength="2" required />
</div>
<br />
<div>
<label for="email">Customer Email </label>
<input type="email" name="email" id="email" placeholder="Enter Email" required />
</div>
<br />
<div>
<label for="color">T-shirt Colour</label>
<select name="color" id="color" required>
<option value="" disabled selected>Select a Colour</option>
<option value="#6495ED">Cornflower Blue</option>
<option value="#FF66CC">Rose Pink</option>
<option value="#90ee90">Light Green</option>
</select>
</div>
<br>
<div>
<label for="size">T-shirt Size</label>
<select name="size" id="size" required>
<option value="" disabled selected>Select a Size</option>
<option value="XtraSmall">XS</option>
<option value="Small">S</option>
<option value="Medium">M</option>
<option value="Large">L</option>
<option value="Xtralarge">XL</option>
<option value="XtraXtraLarge">XXL</option>
</select>
</div>
<br />
<div>
<button type="reset">Reset form</button>
<button type="submit">Submit</button>
</div>
</form>
</main>
<footer>
<p>Angela McLeary | Form-Controls | Sprint 2 | 2026</p>
</footer>
</body>
</html>