I dont know whats wrong in my code can someone help me

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>
<form action="https=//freecatphotoapp.com/submit-cat-photo">
<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><br>
 <label><input id="loving" type="checkbox" name="personality" value="loving"checked>loving </label>
 <label><input id="lazy" type="checkbox" name="personality" value="lazy"> lazy 
 </label>
 <label><input id="energetic" type="checkbox" name="personality" value="energetic"> energetic </label><br>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

Challenge: Check Radio Buttons and Checkboxes by Default

Link to the challenge:

The failing test is:

You should not change the inner text of the Indoor label.

You have this:

      <label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor"checked> indoor </label>

This was the original:

    <label for="indoor"><input id="indoor" type="radio" name="indoor-outdoor" value="indoor"> Indoor</label>

You were supposed to add the checked attribute, not change anything else. You’ve changed the text and some other things.

I would recommend starting over. Hit the Reset All Code button to start fresh. Then all you have to do is add the checked attribute in two places.

1 Like

Please do not create duplicate topics for the same challenge/project question(s). This duplicate topic has been unlisted.

Thank you.

1 Like

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