Skip to content

Commit b3a5762

Browse files
Add clour field with radio buttons
1 parent db804ea commit b3a5762

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Form-Controls/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ <h1>Product Pick</h1>
2929
<label for="email">Email</label>
3030
<input type="email" id="email" name="email" required>
3131
</div>
32+
<fieldset>
33+
<legend>Colour</legend>
34+
35+
<label>
36+
<input type="radio" name="colour" value="black" required> Black
37+
</label>
38+
39+
<label>
40+
<input type="radio" name="colour" value="white"> White
41+
</label>
42+
43+
<label>
44+
<input type="radio" name="colour" value="red"> Red
45+
</label>
46+
</fieldset>
3247
<button type="submit">Submit</button>
3348
</form>
3449
</main>

0 commit comments

Comments
 (0)