Basic HTML and HTML5 - Create a Set of Checkboxes

Tell us what’s happening:

stuck in the check box problem and it stuck not 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://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>catnip</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://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>
<label for="loving"><input id ="loving"type="checkbox"name="personality"> loving
</label>
<label for="mean"><input id ="mean"type="checkbox"name="personality">mean
</label>
<lable for="rude"><input id ="rude"type="checkbox"name="personality">rude
</label>
<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/123.0.0.0 Safari/537.36

Challenge Information:

Basic HTML and HTML5 - Create a Set of Checkboxes

1 Like

Great work! I would start by checking your spaces. There are some extra, and some that are missing. Start at ‘id ="mean"type=“checkbox”’ and continue checking the spacing until the end. Happy coding.