I need help with step 55, can anyone help me please?

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

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <section>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
      <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
    </section>
    <section>
      <h2>Cat Lists</h2>
      <h3>Things cats love:</h3>
      <ul>
        <li>cat nip</li>
        <li>laser pointers</li>
        <li>lasagna</li>
      </ul>
      <figure>
        <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
        <figcaption>Cats <em>love</em> lasagna.</figcaption>  
      </figure>
      <h3>Top 3 things cats hate:</h3>
      <ol>
        <li>flea treatment</li>
        <li>thunder</li>
        <li>other cats</li>
      </ol>
      <figure>
        <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" alt="Five cats looking around a field.">
        <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
      </figure>
    </section>
    <section>
      <h2>Cat Form</h2>
      <form action="https://freecatphotoapp.com/submit-cat-photo">
        <fieldset>
          <legend>Is your cat an indoor or outdoor cat?</legend>
          <label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor"> Indoor</label>
          <label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor</label>
        </fieldset>
        <fieldset>
          <legend>What's your cat's personality?</legend>
           <input id="loving" type="checkbox"> <label><for="loving"></label>
        </fieldset>
        <input type="text" name="catphotourl" placeholder="cat photo URL" required>
        <button type="submit">Submit</button>
      </form>
    </section>
  </main>
</body>
</html>
  **Your browser information:**

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

Challenge: Step 55

Link to the challenge:

Whats the problem sorry??

for="loving" should be should be attribute of opening label tag and provide text Loving between opening and closing label tags

1 Like

Thank you for helping, but i did that and it still says: The text Loving should no longer be located directly to the right of your checkbox. It should be wrapped in a label element.
Did i do something wrong?

post your code please

you have not given label attribute, like this <label for="loving">


I did that, but it still says the same.
i tried every combination, but it didn’t work :frowning:

you are close, just remove the space between Loving and closing label </label>

sorry move closing label tag near opening label tag

like <input> <label></label>

Label element should come after the input element not before. Also, there should be a space between the them.

ye sorry I changed the order

I tried that too, but now it says: The new label element should be located directly to the right of your checkbox. Make sure there is a space between the two elements.
I tried everything but i still don’t know what to do?
When i put it on right side of checkbox it says something else.
i really don’t know what to do

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

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

This is kind of close. You have to put the for=“loving” inside the opening tag of label, next, put the text “Loving” inside that label tag. Capitalization matters.

I tried every combination but still it’s wrong.


I tried that but it’s wrong again, i will try something else and i will text you if it is correct.

add one space between the input tag and label tag

THANK YOU SOOOOOO MUCH!!!
I WOULD NEVER PASS THAT STEP
THANK YOU! :smiley:

1 Like