Skip to content

Commit 8484bc7

Browse files
committed
form controls
1 parent 66417c3 commit 8484bc7

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

Form-Controls/index.html

+35-6
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,44 @@ <h1>Product Pick</h1>
1313
</header>
1414
<main>
1515
<form>
16-
<!-- write your html here-->
17-
<!--
18-
try writing out the requirements first as comments
19-
this will also help you fill in your PR message later-->
20-
</form>
16+
<!-- Customer Name -->
17+
<label for="name">Full Name:</label>
18+
<input type="text" id="name" name="name" required pattern="[A-Za-z ]{2,50}" title="Name must be between 2 and 50 characters and contain only letters and spaces.">
19+
<br><br>
20+
21+
<!-- Customer Email -->
22+
<label for="email">Email Address:</label>
23+
<input type="email" id="email" name="email" required>
24+
<br><br>
25+
26+
<!-- T-Shirt Colour -->
27+
<label for="color">Choose a T-Shirt Colour:</label>
28+
<select id="color" name="color" required>
29+
<option value="red">Red</option>
30+
<option value="blue">Blue</option>
31+
<option value="black">Black</option>
32+
</select>
33+
<br><br>
34+
35+
<!-- T-Shirt Size -->
36+
<label for="size">Choose a Size:</label>
37+
<select id="size" name="size" required>
38+
<option value="XS">XS</option>
39+
<option value="S">S</option>
40+
<option value="M">M</option>
41+
<option value="L">L</option>
42+
<option value="XL">XL</option>
43+
<option value="XXL">XXL</option>
44+
</select>
45+
<br><br>
46+
47+
<!-- Submit Button -->
48+
<button type="submit">Submit Order</button>
49+
</form>
2150
</main>
2251
<footer>
2352
<!-- change to your name-->
24-
<h2>By HOMEWORK SOLUTION</h2>
53+
<h2>By Aliziwe Ngoma</h2>
2554
</footer>
2655
</body>
2756
</html>

0 commit comments

Comments
 (0)