Why this problem is coming "Make sure each of your label elements has a closing tag."

The topic of this challenge is:Create a Set of Checkboxes

PLEASE FIND WHAT IS PROBLEM IN MY CODE?

   ***THIS CODE WHICH I TRY TO GET AN SOLUTION***

<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>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://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>
    <label for="loving"><input id="loving" type="checkbox" name="personality"> Loving</label>
   <label for="lazy"><input id="lazy" type="checkbox" name="personality"> Lazy</label>
   <label for="energetic"><input id="energetic" type="checkbox" name="personality"> Energetic</label><br>
   <input type="text" placeholder="cat photo URL" required>
   <button type="submit">Submit</button>
<lable for="name"><input id="name" type="checkbox" name="your name">Name</label>
</form>
</main>
   **Your browser information:**

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

Challenge: Create a Set of Checkboxes

Link to the challenge:

You have spelling error. When I fix that, it passes for me.

SIR,In which line there has a problem

in which there has a problem

The one I listed. This is the full line:

<lable for="name"><input id="name" type="checkbox" name="your name">Name</label>

It is the last label in your form. You misspelled the first label. You misspelled it as “lable”.

I make that mistake a lot, too. When you get to program in the “real world” you’ll have things like spell checkers and linters that will help you catch things like this.

1 Like

thanks
sir
we
will
meet
soon

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