Checkbox element not reading

I keep getting the most asinine message known to man despite that I don’t see an issue. Someone please tell me where I’m effing up.

Message: Each of your three checkbox elements should be nested in their own label element. Your checkboxes should be given the name element of personality.

My code:

<label for="loving"><input id="loving" type="checkbox" name="personality"> Loving</label>
<label for="satanic"><input id="satanic" type="checkbox" name="personality"> Satanic</label>
<label for="hangry"><input id="hangry" type="checkbox" name="personality"> Hangry</label>

this is the full code for context

<h2>CatPhotoApp</h2>

<main>

  <p>Click here to view more <a href="#">cat photos</a>.</p>

  <a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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 

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

   <label for="satanic"><input id="satanic" type="checkbox" name="personality"> Satanic</label>

   <label for="hangry"><input id="hangry" type="checkbox" name="personality"> Hangry</label>

  <action="https://www.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>

    <input type="text" placeholder="cat photo URL" required>

    <button type="submit">Submit</button>

  </form>

</main>

It would help if you provide your full code and a link to the challenge you are working on. Thanks.


I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

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