Learn HTML by Building a Cat Photo App - Step 61

I write this code, but it said it was wrong!
Could anyone help me find the issues would much appreciate it. The clue said to ensure there still are two radio buttons and three checkboxes nested in their respective fieldset elements, which I think I did.

     <fieldset>
<legend>Is your cat an indoor or outdoor cat?</legend>
<label><input type="radio" id="indoor" name="indoor-outdoor" value="indoor" checked> Indoor</label>
<label><input type="radio" id="outdoor" name="indoor-outdoor" value="outdoor"> Outdoor</label>
       </fieldset>
     <fieldset>
<legend>What's your cat's personality?</legend>
<label><input type="checkbox" id="loving" name="personality" value="loving" checked> Loving</label>
<label><input type="checkbox" id="lazy" name="personality" value="lazy" > Lazy</label>
<label><input type="checkbox" id="energetic" name="personality" value="energetic"> Energetic</label> 
        </fieldset>

Thanks

Post a link to the challenge.

in your second fieldset:
the input element must not be in the label element,
the for attribute of the label is used to link it to the input with its id attribute

Please dont try to give the code to pass the challenges.

The inputs must be inside the label for this challenge

Thanks

Sure, Thanks for your support.

Sorry, my response was for the user above mine. What does the error say when you try to submit this code?

Sorry for the code
in this step you just have to add checked
the inputs must not be inside the label during this step
they are linked to the label during steps 56-59

The radio buttons given to the user starts out as

<label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor" checked> Indoor</label>

The directions do not say anything about moving the input and labels around so they should not be touched. The only thing the user needs to do is add “checked” to the correct places to pass this challenge

1 Like

in the first fieldset, the inputs type=“radio” are inside
but not in the second fieldset with type=“checkbox” inputs

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.