Skip to content

Commit c575797

Browse files
committed
changed colour input to be a dropdown menu
1 parent 11dc50d commit c575797

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

Form-Controls/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ <h1>Product Pick</h1>
2121
<input type ="email" id="mail" name="customers_email" required></div>
2222
<!-- 2. What is the customer's email? I must make sure the email is valid.
2323
Email addresses follow a consistent pattern.-->
24-
<div><label for="colour">Colour:</label><input id="colour" name="t-shirt colour" required></div>
24+
<div>
25+
<label for="colour">Colour:</label>
26+
27+
<select id="colour" name="tshirt_colour" required>
28+
<option value="" selected disabled>Choose a colour</option>
29+
<option value="pink">Pink</option>
30+
<option value="yellow">Yellow</option>
31+
<option value="black">Black</option>
32+
</select>
33+
</div>
2534
<!--3. What colour should this T-shirt be? I must provide 3 options.
2635
How will I ensure they do not choose other colours?-->
2736
<div><label for="size">Size:</label><input id="size" name="t-shirt size" required></div>

0 commit comments

Comments
 (0)