Help i couldn't pass the checkbox tutorial

Tell us what’s happening:

i did everything of what was required of me
but i couldn’t pass because " Each of your three checkbox elements should be nested in its own" even though it is.
could somebody please help and see what’s wrong with my code?

<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><br>

  <label for="loving">
    <input id="loving" type="checkbox" name="personality">loving
<label for="hateful"><input id="hateful" type="checkbox"name="personality">hateful<br>

    <label for="lazy">
      <input id="lazy" type="checkbox" name="personality">lazy<br>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>


Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0.

Challenge: Create a Set of Checkboxes

Link to the challenge:

Looks like the <br> tags you added are the problem. Do not add anything to the code that the challenge didn’t ask for, because it can break the test.

1 Like

They want you to do something like

   <label for="pizza"><input id="pizza" type="delicouse" name="Domino's"> Pepperioni</label>

Thanks dude for the help

No, problem. Happy coding!