Pls I’m stucked at the checked part I tried my best but still telling me to add check attribute

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="">cat photos</a>.</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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Mobile/15E148 Safari/604.1

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

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

Welcome to the community! When posting ask for helps, please describe what the issue is, so we don’t have to go digging. Anyway, it looks like you only added checked to the radio button, it also wants you to add to the first checkbox.

Pls enlighten me more ,I’ve been studied on this part for 30mins

How do I add to the first checkbox pls can you illustrate for me on here :pray:

The directions: Make the first radio button and the first checkbox selected by default.

You have done the first part of the instructions, however according to your code you have not added an checked attribute to the first of your checkboxes. So you only have half the answer.

I already did thanks pls help me out

You added it here.

You need to make the exact same change here:

I’m really confused right now pls how do I go about that

What did you try?

We cannot write the answer for you.

You added checked in one place. I au need it in two places.

I am not going to give you the exact code. However I can give you an example:

<input id="bouncy" type="checkbox" name="bouncy" value="bouncy" checked> <label for="bouncy">Bouncy</label>

Notice how I added checked to the <input> tag?

Thanks for the hint :blush:,I figured it out

Awesome! Please mark a comment as Solution so others know the issue is solved.

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