Learn HTML by Building a Cat Photo App - Step 55

Tell us what’s happening:
Describe your issue in detail here.

  **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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

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

Link to the challenge:

A label element needs both an opening and closing tag. A tag starts with a < and ends with a >. Does your opening label tag have both?

The text for a label goes in between the opening and closing tags. I think you forgot to add the text for this label.

<label for= “loving” type=“checkbox” its didnt wor friend

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key.

Until you do the above I can’t really tell what you did. Back to your original attempt:

<label for= "loving" </label>

Do you see that the opening <label> tag is missing the > at the end of it? Once you fix that, then you need to put the label text in between the opening and closing tags.

i try this way, buy nothing
<label for= “loving” id=“loving”

Your checkbox should still have an id attribute with the value loving . You may have removed the attribute or changed its value.

Again, I can’t really help you until I can see your actual HTML. You need to follow the instructions I gave you above for showing your code in here. Also, while you are typing in the editor, you may be able to use the keyboard shortcut Ctrl+e to get the triple backs, but make sure they cursor is on a separate line and no other text is on that line.

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