Https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/create-a-set-of-checkboxes

Tell us what’s happening:

Hi Team, tutorial keeps telling me that I’m missing closing tags for my label elements, however all three label elements finish with . Not sure where I went wrong?

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="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>
  </label>
<label for="loving"><input type="checkbox" name="personality">
Loving </label>
<label for="cute"><input type="checkbox" name="personality">
Cute</label>
<label for="sweet"><input type="checkbox" name="personality">
Sweet</label>

</main>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36.

Challenge: Create a Set of Checkboxes

Link to the challenge:

Hi there,
You have put a closing label element instead of the closing form element :smiley:

You also want to put those checkboxes inside of your form.

Ahhh I see the mistake now, thank you!

Wow, I feel silly. Thank you haha I appreciate it

1 Like