Code isnt working

Tell us what’s happening:
each of my checkbox is nested in its own label but its saying not nested.
my code isnt working

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><br>
  <label>
  <input for="loving"><input id="loving"type="checkbox" name="personality".>Loving
  </label>
  <label>
    <input for="sleepy"><input id="sleepy"type="checkbox" name="personality".> Sleepy
    </label>
    <label>
      <input for="mean"><input id="mean"type="checkbox" name="personality".>Mean
      </label>
      <input type=placeholder="cat photo URL required">
      <button type="submit">submit</button>
  </form>
</main>

Your browser information:

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

Challenge: Create a Set of Checkboxes

Link to the challenge:

I would look at the example that FCC provided and look closely at where they placed the for attribute. Also take a look your input tag. You wrote input twice. Here is the FCC example:

<label for="loving"><input id="loving" type="checkbox" name="personality"> Loving</label>

Hope that helps

<label>
  <input for="loving"><input id="loving"type="checkbox" name="personality".>Loving
</label>

The above code should be like below:

<label for="loving"><input id="loving"type="checkbox" name="personality">Loving
</label>

As jwilkins.oboe said, you wrote input twice, the for="loving" attribute is belong to the label tag.

And the input tag should end with > instead of .> .

Hope that helps