I need help in HTML step57

Tell us what’s happening:
Describe your issue in detail here.
i dont understnad what im doing wrong

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <section>
      <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>
    </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>
          <input id="loving" type="checkbox" name="personality" id="lazy" name="checkbox"> <label for="lazy">Lazy</label> <label for="loving">Loving</label>
          <input id="loving" type="checkbox" name="personality" id="lazy" name="checkbox"> <label for="lazy">Lazy</label> <label for="loving">Loving</label>
          <input id="loving" type="checkbox" name="personality" id="lazy" name="checkbox"> <label for="lazy">Lazy</label> <label for="loving">Loving</label>
        </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 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36 OPR/87.0.4390.45 (Edition Campaign 34)

Challenge: Step 57

Link to the challenge:

The instructions said:

Add another checkbox after the one you just added. The id attribute value should be lazy and the name attribute value should be the same as the last checkbox.

Also add a label element to the right of the new checkbox with the text Lazy. Make sure to associate the label element with the new checkbox using the for attribute.

And this is what you did:

          <input id="loving" type="checkbox" name="personality" id="lazy" name="checkbox"> <label for="lazy">Lazy</label> <label for="loving">Loving</label>
          <input id="loving" type="checkbox" name="personality" id="lazy" name="checkbox"> <label for="lazy">Lazy</label> <label for="loving">Loving</label>
          <input id="loving" type="checkbox" name="personality" id="lazy" name="checkbox"> <label for="lazy">Lazy</label> <label for="loving">Loving</label>

You should have added 1, not 2. And you didn’t change anything in it. One warning sign should be that you have duplicate ids - by definition, you should never have duplicate ids, they should be like fingerprints, unique.

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