Learn HTML by Building a Cat Photo App STEP 50

Hi everyone,

I am doing step 50 and the code gives me an error.

Error message: Test

Sorry, your code does not pass. Keep trying.
Hint

Your legend element should be the first element right below fieldset element’s opening tag and before the first radio button’s opening label tag. It is not in the correct position.

My code:

<fieldset>
  <legend>
    Is your cat an indoor or outdoor cat?
            <label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor"> Indoor</label>
            <label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor</label>
            </legend>
            </fieldset>

Thank you very match!

The legend should not wrap the labels. It should just contain the text.

1 Like

Sorry for bothering , I fixed it!