Having an issue with this step 60

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

  **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" checked > Indoor</label>
          <label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor" checked > Outdoor</label>
        </fieldset>
        <fieldset>
          <legend>What's your cat's personality?</legend>
          <input id="loving" type="checkbox" name="personality" value="loving"> <label for="loving">Loving</label>
          <input id="lazy"            type="checkbox" name="personality" value="lazy"> <label for="lazy">Lazy</label>
          <input id="energetic" type="checkbox" name="personality" value="energetic"> <label for="energetic"> Energetic</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 (Linux; Android 11; Infinix X6812B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Mobile Safari/537.36

Challenge: Step 60

Link to the challenge:

You should check the first radio only using checked not the both, and the first checkbox is missing checked attribute

1 Like

i checked the outdoor and indoor only but still having the same error maybe I’ll try recoding the values of the checkbox

The input radio type if they have the same name attribute you can check just one, the radio type made for one choice, to check one, but if they have different name attribute you can check both of them

1 Like

I tried but show another error which is The first checkbox is missing a checked attribute I guess it was a bug

have you checked the first checkbox too

1 Like

yes sir. I’m just trying to swap all things because I really don’t understand some of the attributes

You need to make the first type=“radio” checked and the first type=“checkbox” checked, you make both type=“radio” inputs checked, delete the checked from the second radio and add it to the first checkbox

1 Like

this tag is missing checked attribute

1 Like

I’m sure that I already made that. and the error message I got was the first checkbox is missing checked attribute ,
I conclude that indoor and outdoor value was only one.

that was nice You got it…thank you so much

1 Like

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