What is problem here?

Tell us what’s happening:
What is the problem with this code. It says that I make sure each of my label elements have closing tag. I think every label has closing tag so what is a problem

*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="https://freecatphotoapp.com/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>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
  <label for <label for="indoor"> </label>
<label for="sleepy"><input id="sleepy" type="checkbox" name="personality"> Sleepy</label> 
<label for="loving"><input id="loving" type="checkbox" name="personality"> Loving</label>
<label for="mean"><input id="mean" type="checkbox" name="personality"> Mean</label>
</form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36.

Challenge: Create a Set of Checkboxes

Link to the challenge:

This line looks funky to me.

1 Like

Oh thank you, I did not see that.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.