Having trouble on an HTML Responsive Web Design course

I’m currently stuck on Step 55 of the “Building a Cat Photo App” course. I’ve tried multiple ways of arranging the code I need to arrange, none of which have allowed me to pass.
The full code:

<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>
            <label>
              <label for='loving'>
                Loving
              </label>
              <input id="loving" type="checkbox">
            </label>
          </fieldset>
          <input type="text" name="catphotourl" placeholder="cat photo URL" required>
          <button type="submit">Submit</button>
        </form>
      </section>
    </main>
  </body>
</html>

I’ve attempted to submit this specific part for step 55:

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

The likes of which gives me this failure:

Test

Sorry, your code does not pass. You’re getting there.

Hint

You will need to add a new label element in which to nest the text Loving. Make sure it has both an opening and closing tag.

And the console output, if it helps:

<!--
// running tests
You will need to add a new label element in which to nest the text Loving. Make sure it has both an opening and closing tag.
The new label element should be located directly to the right of your checkbox. Make sure there is a space between the two elements.
The new label element does not have a for attribute. Check that there is a space after the opening tag's name.
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.
// tests completed
-->

I genuinely don’t know what’s wrong with my code (possibly just stupid), but it’s been driving me crazy for the last hour or so. I’d be absolutely grateful for any form of help.

Loving

I just used this and the code passed. So think we should just arrange the elements

Turns out I just had to remove the first label that the text was in. Apologies for the inconvenience, everyone.

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