shiju
October 19, 2022, 12:15pm
1
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."
Griff
October 19, 2022, 12:26pm
2
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.
Griff
October 19, 2022, 12:28pm
3
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.
system
Closed
April 20, 2023, 12:29am
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.