Skip to content

Commit 54e6c7f

Browse files
committed
Add Radio Button for T-shirt Colour
1 parent e3b0d4d commit 54e6c7f

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,30 @@ <h1>Product Pick</h1>
1414
<main>
1515
<form>
1616
<!-- Field for Customer’s Name-->
17-
<label for="name">Name:</label>
17+
<div>
18+
<label for="name">Name:</label>
1819
<input type="text" id="name" name="customer_name">
19-
20+
</div>
21+
2022
<!-- Field for Customer’s Email-->
23+
<div>
2124
<label for="email">Email:</label>
2225
<input type="email" id="email" name="customer_email">
26+
</div>
27+
28+
<!-- Radio Button for T-shirt Colour-->
29+
<div>
30+
<fieldset>
31+
<legend>T-shirt Colour:</legend>
32+
<input type="radio" id="colour" name="tshirt_colour" value="red">
33+
<label for="colour">Red</label>
34+
<input type="radio" id="colour2" name="tshirt_colour" value="yellow">
35+
<label for="colour2">Yellow</label>
36+
<input type="radio" id="colour3" name="tshirt_colour" value="green">
37+
<label for="colour3">Green</label>
38+
</fieldset>
39+
</div>
2340

24-
<!-- Radio Button for T-shirt Color-->
2541
<!-- Radio Button for T-shirt Size-->
2642
<!--
2743
try writing out the requirements first as comments

0 commit comments

Comments
 (0)