Learn HTML by Building a Cat Photo App - Step 56

Tell us what’s happening:

I’m almost certain this is the correct code however somehow I am still wrong and I’ve tried everything.

All solutions on the forum seem to suggest that this is correct.

Can someone please help??

Thank you

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <h2>Cat Photos</h2>
        <!-- TODO: Add link to cat photos -->
        <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</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>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

          </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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 56

Your label contains more than ONLY the word Loving inside

Thank you for your response. I feel a bit silly but I still don’t get it.
I’ve also tried having it read like this:

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

However this is also incorrect

All of this is inside of your label, but its not the literal word Loving. Only the 6 letters Loving can be in between the opening and closing tags of the label element.

Still not got it.

I think it’s the wording of this whole step that I’m struggling with.

This is literally the only thing allowed between

and

I’m trying to reply with the codes I am trying but for some reason they won’t show up once posted.

Trying everything still but it’s not clicking

If I was to just include Loving inside a label which is what it sounds like you are suggesting that also does not work

Originally you were given (had) this:

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

And the request says:

[…] nesting only the text Loving in a label element and giving it an appropriate for attribute.

The first move is to identify the only text Loving with capital L. Then, surround that text with a label <label></label>. Following that, write an attribute named for in the starting tag of label (attributes go only in the starting tag) and give it the value “loving” (lower case) to that for attribute.

There is the assumption that you will notice that there’s a space between checkbox"> Loving which must be preserved when you create the label element.

Thank you so much!!

You explained that very clearly, much appreciated :slight_smile:

1 Like

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