Create a Set of Checkboxes help!

Tell us what’s happening:

I feel i have hit every maker:

Your page should have three checkbox elements. -Passed

Each of your three checkbox elements should be nested in its own label element.

Make sure each of your label elements has a closing tag. -passed

Give your checkboxes the name attribute of personality .

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>
    


    <lable for="loving"><input id="loving" type="checkbox"
name="personality"> Loving</lable>
    <lable for="playful"><input id="playful" type="checkbox"
name="personality"> Playful</lable>
    <lable for="curious"><input id="curious" type="checkbox"
name="personality"> Curious</lable>
<p></p>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
  </form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15.

Can you add a link to the exercise?

It won’t allow me to use that feature yet for “security reasons” i have broken it up with spaces to try to added it

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

Check your spelling of label.

omg!!! thank you :stuck_out_tongue:

1 Like

:smiley: My pleasure