Skip to content

Commit b07d9e0

Browse files
committed
added <select> for choosing color and size
1 parent 5b7222c commit b07d9e0

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,32 @@ <h1>Product Pick</h1>
2222
<label for="email">Email:</label>
2323

2424
<input type="email" id="email" name="email" required/>
25-
<div>
26-
<button type="submit"> Submit</button> </div>
25+
26+
<!--must select color from 3 options-->
27+
<div>
28+
<label for="color">Choose a color:</label>
29+
<select name="color" id="color" required>
30+
<option value="">Choose Color</option>
31+
<option value="green">Green</option>
32+
<option value="red">Red</option>
33+
<option value="blue">Blue</option>
34+
</select>
35+
</div>
36+
<div>
37+
<label for="size">Choose a size:</label>
38+
<select name="size" id="size" required>
39+
<option value="">Choose Size</option>
40+
<option value="Xsmall">XS</option>
41+
<option value="small">S</option>
42+
<option value="medium">M</option>
43+
<option value="large">L</option>
44+
<option value="xlarge">XL</option>
45+
<option value="xxlarge">XXL</option>
46+
</select>
47+
</div>
48+
<div>
49+
<button type="submit"> Submit</button>
50+
</div>
2751
<!--
2852
try writing out the requirements first as comments
2953
this will also help you fill in your PR message later-->

0 commit comments

Comments
 (0)