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

  <p>Click here to view more <a href="#">cat photos</a>.</p>
  <a href="#"><img src="" alt="A cute orange cat lying on its back."></a>
  <p>Things cats love:</p>
    <li>cat nip</li>
    <li>laser pointers</li>
  <p>Top 3 things cats hate:</p>
    <li>flea treatment</li>
    <li>other cats</li>
  <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>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>

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