Create a Set of Checkboxes - Help!

Tell us what’s happening:

The client keeps telling me that my check box elements aren’t nestled in it’s own label elements. I’ve looked through my code several times and I cannot see what’s wrong with it and it would not let me pass the lesson.

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> <br>
    <label for="happy">
      <input type="checkbox" id="happy" name="personality"> Happy 
      <label for="angry">
        <input type="checkbox" id="angry" name="personality">Angry
      <lable for="sad">
        <input type="checkbox" id="sad" name="personality">Sad


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:

You have a typo in one of your "label"s

1 Like

Thank you, small typo literally ruins the entire code!

Welcome to my life.

1 Like