Creating checkboxes

I’m trying to create checkboxes and I have. Everything looks ok with my code and the checkboxes appear on the cat wed page however it won’t let me pass. It keeps saying to make sure my label tags are closed. But they are! can you find anything wrong with this,yes it is nested in the form.

Your code so far Loving
Mean
Sleepy


<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">Mean</lable>
  <label for="sleepy"><input id="sleepy"
type="checkbox" name="personality">Sleepy  </label>    
<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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36.

Challenge: Create a Set of Checkboxes

Link to the challenge:

Hi and welcome to the forum!

I’d put this all on one line.

You have a typo in your closing tag here.

I hope this helps!

It did help thank you for the quick response. It was the typo. Oops.

1 Like