Hey fellow coders.im having and issue with the label elements. All my label elements have closing tags but it still won't allow me to proceed.. If you can,your help will be appreciated

Tell us what’s happening:

Your code so far


<h2>CatPhotoApp</h2>
<main>
 <p>Click here to view more <a href="#">cat photos</a>.</p>

 <a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

 <p>Things cats love:</p>
 <ul>
   <li>cat nip</li>
   <li>laser pointers</li>
   <li>lasagna</li>
 </ul>
 <p>Top 3 things cats hate:</p>
 <ol>
   <li>flea treatment</li>
   <li>thunder</li>
   <li>other cats</li>
 </ol>
 <form action="https://freecatphotoapp.com/submit-cat-photo">
  <label> <label for="indoor"><input id="indoor" type="radio" name="indoor-outdoor"> Indoor </label>
  
   
   <label for="outdoor"><input id="outdoor" type="radio" name="indoor-outdoor"> Outdoor</label> <br>  
   
   <input type="text" placeholder="cat photo URL" required>
   <button type="submit">Submit</button>
 </form>
 
 <form action="https://freecatphotoapp.com/submit-cat-photo">
<label>
 <label for="loving"><input id="loving"type="checkbox" name="personality"> Loving
 </label>
 
 <label>
 <label for="caring"><input id="caring" type="checkbox" name="personality"> Caring </label>

<label>
 <label for="sweet"><input id="sweet" type="checkbox" name="personality">Sweet </label>  
 </form> 
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36.

Challenge: Create a Set of Checkboxes

Link to the challenge:

Hello there and welcome to the forum!

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

The more information you give us, the more likely we are to be able to help.

  1. You have added a second form element that you were not asked to add. Put the new elements inside the form that is already in the HTML.

  2. You have extra opening <label> tags, they need to be removed.

Hi Khutso6ix,

I recently completed this challenge . I had the same problem. The HTML tags must be nested correctly to pass the test.

To make the nesting easier to see, put the opening and closing tags of the Label on separate lines and put the label text on the line between them. The Input tag can be placed just in front of the text similar to this…

<label>
    <input> text
</label>

If you have a lot of mistakes in the code window it might be difficult to remember what you have changed. It might be easier to click the “Reset All Code” button and start this challenge again.

Regards Martin