Skip to content

Commit 919333d

Browse files
add fieldset
1 parent 8adacf3 commit 919333d

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,9 @@ <h1>Pick product</h1>
2525
<input type="email" name="email" placeholder="chandramani@gmail.com" id="email" required>
2626
</div>
2727
<br>
28-
<div>
2928
<!--What color should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours? -->
30-
</div>
31-
<div>
29+
<fieldset>
3230
<legend>Color Option</legend>
33-
</div>
34-
</div>
3531
<div>
3632
<input type="radio" name="grey" value="grey" id="grey" required>
3733
<label for="grey">Grey</label>
@@ -43,14 +39,13 @@ <h1>Pick product</h1>
4339
<div>
4440
<input type="radio" name="red" value="red" id="red" required>
4541
<label for="red">Red</label>
46-
</div>
4742
</div>
43+
</fieldset>
4844
<br>
49-
<div>
5045

5146
<!--What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL -->
52-
<div>
53-
<legend>Size</legend>
47+
<fieldset>
48+
<legend>Size</legend>
5449
</div>
5550
<div>
5651
<input type="radio" name="xs" value="xs" id="xs" required>
@@ -76,7 +71,7 @@ <h1>Pick product</h1>
7671
<input type="radio" name="xxl" value="xxl" id="xxl" required>
7772
<label type="xxl">XXL</label>
7873
</div>
79-
</div>
74+
</fieldset>
8075
<br>
8176
<div>
8277
<input id="submit" type="submit">

0 commit comments

Comments
 (0)