I'm stuck here this said The first radio button is missing the checked attribute

      <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 checked="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" 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>
        <input type="text" name="catphotourl" placeholder="cat photo URL" required>
        <button type="submit">Submit</button>

checked attribute does not require a value, just separate it from other attributes by a space without any value,

This mean i have to removed the value at the end?

I still dont get it

input id checked is okey?

no, <input checked /> with appropriate attributes, no id should not be check
ed. you can put checked anywhere inside the element

input checked=indoor type radio name indoor-outdoor value indoor

this is how i understand until now, they just want to me add checked and in the webside show me that is checked but I still no passing this one

they also say i dont need value but i deleted it and still no pass

post your code again

i post it again, this time i did the change input checked

post your updated code here in the forum so that we can see what errors there might be

remove checked from id, checked should be separate from other attributes by a space


ill let you know tomorrow i still dont get it and a bit tired now <3

I did thanks for your patient :pray:

1 Like

please drop the correct code…

If you need help, click on Ask for Help button in the challenge

1 Like

here’s the correct code


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