Learn HTML by Building a Cat Photo App - Step 55

Tell us what’s happening:

  **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>
      <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>
          <input id="Loving" type="checkbox"> 
          <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; rv:102.0) Gecko/20100101 Firefox/102.0

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

Link to the challenge:

You’re not that far off but you have a few issues to fix:

  • First, you don’t want to change anything with the input. You changed the id from “loving” to “Loving”. Don’t do this, put it back to “loving”.
  • The instructions say “Associate the text Loving with the checkbox by only nesting the text Loving in a label element…” The text for the label goes between the opening and closing label tags. That’s the text that shows up on the page. Right now you don’t have any text between the tags and so nothing is showing up on the page.
  • “…and place it to the right side of the checkbox input element.” You’ve placed the label below the input (on a new line), not to the right of the input (on the same line).
  • You’ll want to fix the for attribute on the label so it matches the id of the input.

thanks it worked perfectly thnks

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