Create a Set of Checkboxes?

Create a Set of Checkboxes?
0.0 0

#1

Tell us what’s happening:

Your code so far

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back. " src="https://bit.ly/fcc-relaxing-cat"></a>

<p>Things cats love:</p>
<ul>
  <li>other cats</li>
  <li>humans</li>
  <li>laser pointers</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li>other cats</li>
  <li>people they don't like</li>
  <li>squirt guns</li>
</ol>


<form action="/submit-cat-photo">
  <label><input type="checkbox" name="personality"> Loving </lable>
  <label><input type="checkbox" name="personality"> Loving </lable>
  <label><input type="checkbox" name="personality"> Loving </lable>
  <label><input type="radio" name="indoor-outdoor"> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
  
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
  
  
    
</form>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36.

Link to the challenge:


#2

I have not been able to pass this challenge. It says that I still need to make sure that each checkbox input is nested within it’s own label element. Which it seems I have done. It also says I am missing my closing label tags, which I am not. I have already tried positioning the checkbox code outside of the form, before the h2, etc. Still not passing for seemingly the same reasons.

I’m confused why I am not passing this challenge? Help?


#3

You have a typo on your closing tag. It should be </label> not </lable>


#4

much appreciated…I don’t know why I didn’t catch that typo.