Learn HTML by Building a Cat Photo App - Step 52

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

      <fieldset>
        <fieldset>
        <legend>Is your cat an indoor or outdoor cat?</legend>
        <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>
      </fieldset>

what is the error in the givenlines?
i did not understand this " The second fieldset element should not be nested in the first fieldset element."

Hi!
In future please use the ‘ask for help’ button, this will make a post automatically with your formatted code, a link to the lesson and browser information. It appears if you fail the lesson a few times.

For now, please add a link to the lesson this will make is easier for people to check your code.

As for your code itself, the instructions say this.

add another fieldset element directly below the current fieldset element.

<fieldset>
        <fieldset>
        <legend>Is your cat an indoor or outdoor cat?</legend>
        <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>
      </fieldset>

You have opened the new fieldset element inside the first element instead of below.

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