Create a Set of Checkboxes 2

Tell us what’s happening:
something is wrong with my checkboxes, and i cant find a mistake. need some help.

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>
    
  </form>

  <lable>
      <input type="checkbox" name="personality">Loveing
    </lable>
    <label>
      <input type="checkbox" name="personality">playfull
    </lable>
    <lable>
      <input type="checkbox" name="personality">Happy
    </lable>
</main>

Your browser information:

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

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

<lable>
      <input type="checkbox" name="personality">Loveing
    </lable>
<label>
      <input type="checkbox" name="personality">playfull
    </lable>
    <lable>
      <input type="checkbox" name="personality">Happy
    </lable>

They should be placed between <form></form> tag

And also there is a typo, its not lable

i corected the placement and typo, but its still telling me “Each of your three checkbox elements should be nested in its own label element.” and i dont know what is wron here

Okay, can you provide the code you tried

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
Indoor Outdoor
Submit Loveing playfull Happy
<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>
      <input type="checkbox" name="personality">Loveing
    </label>
    <label>
      <input type="checkbox" name="personality">playfull
    </lable>
    <label>
      <input type="checkbox" name="personality">Happy
    </label>
    </form>
</main>

Still the same typo here at the closing tag

1 Like

its working now, thank you for your help.