Cat-Photo Lesson 61 - Add 'checked' attribute to the Indoor radio button

I know I put the ‘checked’ attribute in the right place for the Indoor radio button. So, I don’t understand why the system keeps telling me that I’ve entered the wrong answer. I’ve already tried using Google to figure out the issue. That’s how I know the attribute’s in the right place. Also, the Indoor button is auto-selected like it’s supposed to be.

Here’s the link to the lesson that I’m having trouble with: Cat-Photo - HTML/CSS: Lesson: 61

        <h2>Cat Photos</h2>
        <!-- TODO: Add link to cat photos -->
        <p>See more <a target="_blank" href="">cat photos</a> in our gallery.</p>
        <a href=""><img src="" 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="" 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="" alt="Five cats looking around a field.">
          <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
        <h2>Cat Form</h2>
        <form action="">
            <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">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>

Please share all of your code and the link to the challenge. Thanks

Hello. I haven’t gotten a reply to this yet. Should I repost or just wait maybe one more day?

Please don’t create duplicate topics.

I didn’t know you updated the first post.

Make the first radio button and the first checkbox selected by default.

You did not change the first checkbox yet

I didn’t even realize that I created a duplicate topic. Thanks all the same for the help. It worked.

1 Like

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