Create a Set of Checkboxes issue?

So I’m working my way through the early stages of this course, and seem to have hit a bit of a hurdle.

I personally don’t see anything wrong with the code, however I get the following errors:

Each of your three checkbox elements should be nested in its own label element.
Make sure each of your label elements has a closing tag.
Give your checkboxes the name attribute of personality.

To my knowledge I meet all of that criteria, but maybe it just needs a fresh pair of eyes to take a look and see where I’m going wrong.

Many thanks!

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>
    <label for="loving"><input id="loving" type="checkbox" name="personality"> Loving</label>
    <label for="angry"><input id="angry" type="checkbox" name="personality"> Angry</label>
    <lable for="neutral"><input id="neutral" type="checkbox" name="personality"> Neutral</label>
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>

Your browser information:

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

Check your code for typos. There’s quite an obvious one I can see.

I know these end up driving you crazy when you can’t see them, but it should be obvious if you take a look again.

1 Like

Ah got it!

Maybe it’s time for a break; doesn’t help my hands are absolutely freezing! Damn you cold weather!

1 Like

Having a break definitely helps. I’ve just finished the CSS/HTML course and I made sure I had a break at set intervals - every 7/8 challenges. I found it helped let the information soak in a bit better too.