Need help with the Check Radio Buttons and Checkboxes by Default exercise

Need help with the Check Radio Buttons and Checkboxes by Default exercise
0

#1

I do not understand what I am doing wrong


#2

For a radio group, you need to have a name for the group, and a value for each member of the group, like this:

Milk

Butter

Cheese


#3

Here’s a very easy example of both.

codepen


#4

This is what it tells me to do.


#5

check out the code below, is this is what your code looks like? From the code you first wrote looks like you copied the example, so the names are not matching the projects names of “indoor-outdoor”, or “personality”. The first check box and the first radio button are now “checked”.

 <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
 <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
 <label><input type="checkbox" name="personality" checked> Loving</label>
 <label><input type="checkbox" name="personality"> Lazy</label>
 <label><input type="checkbox" name="personality"> Energetic</label>
 <input type="text" placeholder="cat photo URL" required>