Can't spot the error (beginner)

Hi, absolute beginner here.
I can’t seem to find the error here. I still get these two messages:
-Each of your three checkbox elements should be nested in its own label element.
-Your checkboxes should be given the name attribute of personality .
I think I have already done this. What am I missing? Thank you so much!

Your code so far

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

<a href="#"><img src="" 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="">
  <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="loving"> 
<input id="loving" type="checkbox"name="personality">Loving</label></form>

<label for="cute"> 
<input id="cute" type="checkbox"name="personality">Cute

<label for="happy"> 
<input  id="happy" type="checkbox"name="personality" >Happy </label></form>


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Challenge: Create a Set of Checkboxes

Link to the challenge:

check the three form elements again :wink: (and if it doesn’t click compare them to the ones above, or as a matter of fact compare them to any other element)
They are missing a crucial detail

Oh my god, I can’t believe I have been looking at this for an hour and did not realise I did not close form :rofl: Thank you!

1 Like