Associate text Loving with the checkbox by nesting the text Loving in a label element and place it to the right side of the checkbox input element

I am very confused on what I am doing wrong on step 55.

it is saying: Hint

The new label element should have a for attribute with the value loving . You have either omitted the value or have a typo. Remember that attribute values should be surrounded with quotation marks.

it does have a “for” attribute. I can’t find typos. There are quotation marks. (see below **)


  **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" type="checkbox">Loving **<label for="Loving"</label>**
        <input type="text" name="catphotourl" placeholder="cat photo URL" required>
        <button type="submit">Submit</button>
  **Your browser information:**

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

Challenge: Step 55

Link to the challenge:

HI @samhainsoul !

Welcome to the forum!

I spot a few issues.

You forgot to close out your opening label tag here

The error message says to have the Loving text in between the label tags.

Double check your capitalization error here

Remember that the for attribute has to have the same input value as the id value and capitalization matters.

Hope that helps!

Thank you! After messing around with it I finally figured it out. It was not having the Loving text in between the label tags that was mostly messing me up. I hope this all starts making sense haha. Thank you so much for your help!

1 Like

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