Create a Set of Checkboxes (please help)

Create a Set of Checkboxes (please help)
0

#1

Hi guys,
I would be grateful if someone could let me know what is wrong with my code?!
I am being told to make sure that each label element has a closing tag (I seems as though they do to me) Is there a problem elsewhere in the code that I am missing?

Thank you

Your code so far


<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="loving"><input id="loving" type="checkbox" name="personality"> loving</label>
  <label for="cute"><input id="cute" type="checkbox" name="personality"> cute</label>
  <label for="naughty"><input id="naughty" type="checkbox" name="personality"> naughty</label>
  <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>
  </form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 10718.88.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.118 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-set-of-checkboxes


#2

Looks like you are missing an opening label here.


#3

Thanks. Appreciate that!