I can not pass this step somebody can assist me

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
<h2>CatPhotoApp</h2>
<form type="checkbox"><label <input name="Personality"></label></form>
<form type="checkbox"><label<input name="personality"></label></form>
<form type="checkbox"> <label <input name="Personality"></label></form>

<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><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/102.0.5005.63 Safari/537.36 Edg/102.0.1245.39

Challenge: Create a Set of Checkboxes

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

Dear J. :
Many Thanks you can assist to me.
1.“Do you have a question?“Yes,I have a problem.I cannot solve it.
2.” If so, please edit your post to include it in the Tell us what’s happening section.”
I type my code below:

<form type="checkbox"><label <input name="Personality">
</label></form>
<form type="checkbox"><label <input name="personality"></label></form>
<form type="checkbox"> <label <input name="Personality"></label></form>

a.This challenge step say must have three checkbox I have set,but no pass.
b.each checkbox has to should be nested in label element. I had seted ,but I type outside the label element so I must to correct them.
c.each checkbox should be given the name attribute of peresonality.I type the name attribute in label element, but also can’t pass,either.
3.
“Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more information you give us, the more likely we are to be able to help.”
Although it is so hard but very funny,may I have some questions(curriculum about code) all ask you for helping me?

It really is important to actually describe what you want help with.

  1. just throwing code at us and expecting us to fix it for you is rude

  2. telling us where to look helps us answer your questions faster

  3. talking about code with other humans is a critical skill for programmers

  4. it takes a lot of practice to get good at talking about code


The capitalization makes a difference.

This is malformed syntax. You can’t open a new tag with < until you close the last one with >

You shouldn’t have these.

You need an input element, not a form element.


You might be moving through the curriculum too quickly. You don’t seem to be understanding how to open and close tags and elements correctly.

Dear J. :
1.name=“Personality” I had correct to small etter but also no pass
2."<label <" I had correct to <label…>
3.I remove also no pass
4.I correct <form type=“checkbox” to "
5.below is I newly correct code:

<form><input label type="checkbox" input name="personality"></label>
<form><input label type="checkbox" input name="personality"></label>
<form> <input label type="checkbox" input name="personality"></label>

Please Mr. J. can correct it.Many Thanks!

You shouldn’t have added form tags here. You only need the form tags that have already been written.

You can’t blend a input and label element. Those should be two separate elements, like in the example

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

Dear J. : I had passed.Many Thanks!

1 Like