*RETURN ERROR:** I've been trying to check by default my first radio and checkbox labels but it You should not change the inner text of the Indoor label

RETURN ERROR:*
I’ve been trying to check by default my first radio and checkbox labels but it kept returning " You should not change the inner text of the Indoor label";a little help can go a long way,thank you!

  **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://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>
</form>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0

Challenge: Check Radio Buttons and Checkboxes by Default

Link to the challenge:

The answers are Correct. The test passes on my browser.

If you are using DARK MODE or NIGHT MODE extension , it might need to be disabled for the curriculum.

If it isn’t dark mode causing the issues, try deactivating any browser extension that has access to freecodecamp, add blockers etc, And try updating your browser to latest version or use a different, fully updated browser…

If none of these things work, try using a different Device to complete the lesson.

If none of that works, try rebooting, or / and resetting the browser cache…

Your browser is too old. You need a minimum of Firefox 74 for this to work. The test that is checking your code is using javascript code (optional chaining) that your browser does not support.

Use whatever browser you can use that is as up-to-date as possible.


Optional chaining operator

give a space before checked

The code posted passes all the tests. The problem is with the browser.

Not that I disagree, there should be a space. But that isn’t the problem.

you can just simply pass the challenge and try to solve the next one if you understood the previous one.

The problem is a lot of the curriculum depends on modern JS to be available in the browser so it won’t be the last time it will cause issues.

But they can try to get through as much of the curriculum as possible if they can’t update the browser. Also, all that is needed to get the certificates is to pass the projects at the end of each section of the curriculum.

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