Please help ive tried redoing this like 3 times

I have been working thro the HTML-CSS class and I dont know why this doesnt work please help. sorry for wasting your time i just cant figure this out even though it is probably a small stupid mistake

  **My code so far**

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

<lable for="ugly"><input id="ugly" type="checkbox" name="personality">ugly</label>

<lable for="stinky"><input id="ugly" type="checkbox" name="personality">stinky</label>

β€˜β€™'the error
// running tests 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. Your checkboxes should be given the name attribute of personality. // tests completed

""more error these boxes have x’s next to them but it think i did them right

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.

Your checkboxes should be given the name attribute of personality.





<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="https://freecatphotoapp.com/submit-cat-photo">
  <label for="spiteful"><input id="spiteful" type="checkbox" name="personality">spiteful</label>
  <lable for="ugly"><input id="ugly" type="checkbox" name="personality">ugly</label>
  <lable for="stinky"><input id="ugly" type="checkbox" name="personality">stinky</label>



<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>
  **Your browser information:**

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

Challenge: Create a Set of Checkboxes

Link to the challenge:

The label tag is not spelled correctly in a few places. No big deal. I have done things like that before.

1 Like

WELL CRAP i feel really stupid i have been trying to fix this for like 30 min

Thanks for the help this worked

1 Like

Don’t feel bad about it just use it as a learning experience. Things like this happen to everyone.

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