Help with nesting Loving into a label element if it was only that easy there are other parts that I'm not sure about I've been stuck for 3 days

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

  **Your code so far**
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="">cat photos</a>.</p>
      <a href=""><img src="" alt="A cute orange cat lying on its back."></a>
      <h2>Cat Lists</h2>
      <h3>Things cats love:</h3>
        <li>cat nip</li>
        <li>laser pointers</li>
        <img src="" alt="A slice of lasagna on a plate.">
        <figcaption>Cats <em>love</em> lasagna.</figcaption>  
      <h3>Top 3 things cats hate:</h3>
        <li>flea treatment</li>
        <li>other cats</li>
        <img src="" alt="Five cats looking around a field.">
        <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
      <h2>Cat Form</h2>
      <form action="">
          <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>
          <legend>What's your cat's personality?</legend>
   <input id="loving for="checkbox_id" value="loving" type="checkbox"> <lable for="Loving" </lable>   
        <input type="text" name="catphotourl" placeholder="cat photo URL" required>
        <button type="submit">Submit</button>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 10; 9032Z) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36

Challenge: Step 55

Link to the challenge:

First, you shouldn’t change anything about the <input>. I would restart the step to get it back to what it was. Then, the only thing you should do is wrap label tags around the text “Loving” and add the for attribute to the opening label tag.

Also, make sure you spell “label” correctly.

1 Like
       I reset and fix my spelling,  this is my code now


This is the hint it gave me after telling me I still don’t have it right.
The new label element does not have a for attribute. Check that there is a space after the opening tag’s name.

  1. The label element must wrap the text “Loving”
  2. The for attribute’s value must be “loving”
1 Like

My code now


Can you share more code please(the full label and the input)

1 Like

I wish I could ,but I just tried that in my last post and it only posted for=“loving” as my code . Which is also what is showing up in the preview app page infrount of the checkbox

Just copy and paste(ctrl + c/cmd + c)

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

The for="loving" must go inside the label tag <label ............>

Ok so for example if I put
for=“headace” Headace
Did I wrap the word headache in a label element
If not plz explain what I am doing wrong.

<label for="headache">Headache</label>would be wrapping.

1 Like
        <Label for="headache">headache</level> 

But it still says it wrong
With a hint of : Hint

The text Loving should be nested within the new label element. You have either omitted the text or have a typo.

Also I did use the word loving in my code

What is your present code?
You misspelled label in the end tag.

1 Like

It is:

The hint is the space between input and label

1 Like

Please don’t post solutions in here. We try to help people find their own solutions.


Ok sorry about that I’m just super confused I’ve been working on this for 3 days I wrapped it just like I have been dealing other words from the beginning but this one is different and I can’t seem to figure out what kind of different way of wrapping I’m suppose to be doing on this one.

My comment wasn’t directed at you. You can definitely post broken code in here. We need to see it so we can see what you have been trying. If you are still not able to pass this step then please post your most recent HTML in here.

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key.

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

Am I getting close