HTML and HTML5: Create a set of checkboxes

Tell us what’s happening:
I have already created set of checkbox but its telling me to ensure each of my label element has a closing tag and it already has

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 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>
 <label for="Loving"><input id="loving" type="checkbox" name="personality">Loving</label>   
<label for="mean"><input id="mean"type="checkbox" name="personality">Loving</label>
<label for="Loving"><input id ="Loving" type="checkbox"name="personality">Loving</label><br>
<input type="text" placeholder="cat photo URL" required>
   <button type="submit">Submit</
  button>
</form>
</main>
 


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0.

Challenge: Create a Set of Checkboxes

Link to the challenge:

remove the space in this label , it will work

1 Like

Hello. Your outdoor radio button closing tag has extra space

1 Like

thank you so much i was stuck since yesterday

1 Like