Skip to content

Commit a008f20

Browse files
I placed the radio buttom name after the radio button input fot the T shirt color and changed th name to match the ID attribute.
1 parent 697f95f commit a008f20

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

Form-Controls/index.html

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,35 @@ <h1>Product Pick</h1>
2727

2828

2929
<fieldset>
30-
<legend >t-shirt Color</legend>
30+
<legend >T-shirt Color</legend>
3131
<div>
32-
<label for="black" required>Black</label>
33-
<input type="radio" id="black" name="t-shirt-color" value="black">
32+
<label for="black">
33+
<input type="radio" id="black" name="t-shirt-color" value="black" required>
34+
Black
35+
36+
</label>
37+
3438
</div>
3539
<div>
36-
<label for="red">Red </label>
37-
<input type="radio" id="red" name="t-shirt-color" value="red">
40+
<label for="red">
41+
<input type="radio" id="red" name="t-shirt-color" value="red">
42+
Red
43+
</label>
44+
3845
</div>
3946
<div>
40-
<label for="green">Green </label>
41-
<input type="radio" id="green" name="t-shirt-color" value="green">
47+
<label for="green">
48+
<input type="radio" id="green" name="t-shirt-color" value="green">
49+
Green
50+
</label>
51+
4252
</div>
4353
</fieldset>
4454

4555

4656
<div>
47-
<label for="T-shirt-size" >T-Shirt Size</label>
48-
<select name="T-shirtSize" id="T-shirtSize" required>
57+
<label for="t-shirt-size"> T-Shirt Size</label>
58+
<select name="T-shirtSize" id="t-shirt-size" required>
4959
<option value="XS">XS</option>
5060
<option label="S" value="S">S</option>
5161
<option label="M" value="M">M</option>

0 commit comments

Comments
 (0)