Skip to content

Commit 58a44cf

Browse files
committed
Add color selection with 3 radio buttons
1 parent 05ed32d commit 58a44cf

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

Form-Controls/index.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,23 @@ <h1>Product Pick</h1>
2929

3030
<!-- What colour should this t-shirt be? (only 3 options) -->
3131
<fieldset>
32-
32+
<legend>Choose a T-shirt Color:</legend>
33+
<div>
34+
<input type="radio" id="red" name="color" value="red" />
35+
<label for="red">Red</label>
36+
</div>
37+
<div>
38+
<input type="radio" id="blue" name="color" value="blue" />
39+
<label for="blue">Blue</label>
40+
</div>
41+
<div>
42+
<input type="radio" id="green" name="color" value="green" />
43+
<label for="green">Green</label>
44+
</div>
3345
</fieldset>
3446

47+
<!-- T-shirt Size -->
48+
3549
</form>
3650
</main>
3751
<footer>

0 commit comments

Comments
 (0)