Learn HTML by Building a Cat Photo App - Step 15

Struggling with Step 56

The step deals with using the ‘for’ instead of ‘id’ attribute to associate the input element with the element’s text itself. honestly, id appreciate it if someone could simplify the question for me which will be pasted below as i don’t think i’m reading or understanding it correctly/fully. I have created a Label element below my last input element. I cannot seem to get the for element inserted correctly, I am also unsure of the placement of the word loving that the step requires too. all around, i just need help.


[[There’s another way to associate an input element’s text with the element itself. You can nest the text within a label element and add a for attribute with the same value as the input element’s id attribute.

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

Your code so far

      <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>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back." <a href= "https://freecatphotoapp.com"> </a>

Your browser information:

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

Challenge: Learn HTML by Building a Cat Photo App - Step 15

Link to the challenge:

Please post your code for step 56 instead of step 15.

Thank you

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