I cant pass this : Make sure each of your label elements has a closing tag

Hey guys, im stuck here. I double-checked everything and rewrote the closing tags, but i still cant pass. what might be the issue?

   **Your code so far**

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

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

 <p>Things cats love:</p>
   <li>cat nip</li>
   <li>laser pointers</li>
 <p>Top 3 things cats hate:</p>
   <li>flea treatment</li>
   <li>other cats</li>
 <form action="https://www.freecatphotoapp.com/submit-cat-photo">
<label for="caring"><input id="caring" type="checkbox" name="personality"> Caring</label 
<label for="happy"><input id="happy" type="checkbox" name="personality"> Happy</label
<label for="sleepy"><input id="sleepy" type="checkbox" name="personality"> Sleepy</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>
   <label for="caring"><input id="caring" type="checkbox" name="personality"> Caring </label>
<label for="Dreamy"><input id="Dreamy" type="checkbox" name="personality"> Dreamy </label>  
<label for="vengefull"><input id="vengfull" type="checkbox" name="personality"> vengefull </label> 
   **Your browser information:**

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

Challenge: Create a Set of Checkboxes

Link to the challenge:

as said by the tests, some of your label elements are not closed correctly


1 Like

Hey @noizywilson - can you check the first three labels in your code? At the end, you’ll find that you’re missing a > at the end of your label. From what I see, it’s greyed out instead of colored pink/purple.

The labels have the values of caring, happy, and sleepy for the for attribute.

Fix those three, then run the code again and see if that works.

1 Like

Im so stupid sometimes. Thank you so much <3

Thank you so much for the answer as well <3 I really appreciate it. I first read your message, and then saw what Ilenia pointed out in the picture. Big ups guys for the help <3

1 Like

Haha you are not stupid! I make similar errors all the time as well. Even senior-level programmers make basic errors sometimes. It’s all good!

1 Like

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