Create a Set of Checkboxes - Not finding the mistake

Tell us what’s happening:

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="/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>
 <label for="happy">
   <input id="happy" type="checkbox" name="personality"> happy

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

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


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0.

Link to the challenge:

Somehow, it became easier for me to see the following mistake here, at the forum, than at the freeCodeCamp code window. :slight_smile:


If you like you can copy-paste your code into a colorful text editor like Sublime Text. It highlights the tags and makes it easier for you to spot any syntax errors.

On the contrary tho it might be good practise for a beginner to try and spot the coding errors without using color-coded text editors…

1 Like

Thanks for the suggestion. I am using now Brackets. It seems to help quite a lot as well.