Learn HTML by Building a Cat Photo App - Step 56

Tell us what’s happening:

Describe your issue in detail here.
I just started learning HTML today and with most of the steps I was able to google and learn about how to put it together but with this step I can’t even really tell what/why its wanting me to add these features.

I have tried a few different arrangements and even read about how someone else was trying to solve it but no dice.

Your code so far

        <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>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>
          <li>cat nip</li>
          <li>laser pointers</li>
          <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>  
        <h3>Top 3 things cats hate:</h3>
          <li>flea treatment</li>
          <li>other cats</li>
          <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>  
        <h2>Cat Form</h2>
        <form action="https://freecatphotoapp.com/submit-cat-photo">
            <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>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

          <input type="text" name="catphotourl" placeholder="cat photo URL" required>
          <button type="submit">Submit</button>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 56

Hello and welcome to the forums.

This is currently your code. The for attribute is no different than the id attribute for example. By that I mean since it is an attribute it and all other attributes will ALWAYS be contained within the opening tags <> of an element. So, for this lesson, you have the idea right but you need to move the for attribute to be contained within the opening tags of the label element and make the value of it equal to that of the id attribute. Also remove the space after the end of your input element and before the start of your label element.

This is a link that will provide examples of how it is used.


Thanks Alabastor, I was able re-organize it based on the formatting in that article and passed the step.

I don’t fully understand how adding that step changed things. As before that step I had the “loving” checkbox option and afterwards it seems to be the same functionality but I supposed I’ll get better understanding as I continue on.

Thanks for you time.

You are welcome. The reasoning behind it is explained in later lessons and it should all make sense as you continue. If you finish the project and still don’t understand its association you can either message me directly or create a forum post asking for more information on it and we would be happy to explain it further.

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