Skip to content

Challenge Create a Set of Radio Buttons

SaintPeter edited this page · 1 revision
Clone this wiki locally

You can use radio buttons for questions where you want the user to only give you one answer.

Radio buttons are a type of input. They should all be nested in their own label element. Furthermore, all related radio buttons should have the same name attribute.

Here's an example of a radio button: <label><input type="radio" name="indoor-outdoor"> Indoor</label>.

Something went wrong with that request. Please try again.