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?


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

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

</form>
</main>

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!