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


<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>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>   


<form
<label for="loving"> 
<input id="loving" type="checkbox"name="personality">Loving</label></form>

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

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

</main>

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

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