I'm typing the correct code but the program is saying it's wrong

I am trying to do the default checked boxes. I typed checked into the input for the first radio button and first checkbox and they are both showing they are checked but this is the message I am receiving even though I am typing the code in correctly:
You should not change the inner text of the Indoor label.
You should not change the inner text of the Loving label.

Please help me because I am not able to proceed and it’s getting frustrating.

  **Your code so far**

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

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

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<form action="https://www.freecatphotoapp.com/submit-cat-photo">
  <label for="indoor"><input id="indoor" type="radio" name="indoor-outdoor" value="indoor" checked> Indoor</label>
  <label for="outdoor"><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor</label><br>
  <label for="loving"><input id="loving" type="checkbox" name="personality" value="loving" checked> Loving</label>
  <label for="lazy"><input id="lazy" type="checkbox" name="personality" value="lazy"> Lazy</label>
  <label for="energetic"><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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15

Challenge: Check Radio Buttons and Checkboxes by Default

Link to the challenge:

That’s strange. Copy-pasting your code passes the test for me. Try a refresh.

I’ve tried. I tried different things yesterday and I have been trying again today but no luck.

Do you change anything? Take a screenshot :smiley:

The code you have shared works on my end. Please ensure that you have disabled any extensions that interface with the freeCodeCamp website (such as Dark Mode and Ad Blocker), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

I have checked and double checked that nothing is interfering and it’s still not working.

Have you tried a different browser?
Firefox? Google? Safari? Brave?

I am using google chrome without extensions and it passes on my end.

I’m using Safari on my MacBook and I just went on my iPhone and it worked lol thank you for your help!


If it happens again, keep in mind for your certificate you only need to finish the final projectst - not the individual lessons.
So worst case, you can skip lessons if you think the code is correct.

1 Like

That is very useful information, thank you!

dude, you’ve got problem here I guess

delete ‘checked’ <<

‘Loving’ as well, look at the code carefully :smiley:

The challenge is literally about ADDING “checked” to inputs.
The provided code passed the tests for several people.

I am sure you want to help, but you answer is wrong ^^°

1 Like

Thank you for your input but if you read previous replies my code works, it’s just something is off in my Safari or within my computer preferences. The code was typed correctly.

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