Skip to content

Commit 1810706

Browse files
committed
Add section and label around radio buttons
1 parent 84e14fb commit 1810706

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,15 @@ <h1>Product Pick</h1>
6161
</fieldset>
6262
<fieldset id="tshirt-info">
6363
<legend>T-shirt info</legend>
64-
<p>Choose a colour:</p>
65-
<input type="radio" name="color" id="white" value="white"/>
66-
<label for="white">White</label>
67-
<input type="radio" name="color" id="black" value="black"/>
68-
<label for="white">Black</label>
69-
<input type="radio" name="color" id="brown" value="brown"/>
70-
<label for="white">Brown</label>
64+
<label for="color-radio-btns">Choose a colour:</label>
65+
<section id="color-radio-btns">
66+
<input type="radio" name="color" id="white" value="white"/>
67+
<label for="white">White</label>
68+
<input type="radio" name="color" id="black" value="black"/>
69+
<label for="white">Black</label>
70+
<input type="radio" name="color" id="brown" value="brown"/>
71+
<label for="white">Brown</label>
72+
</section>
7173
</fieldset>
7274

7375
<section id="submit-section">

0 commit comments

Comments
 (0)