Check Radio buttons and Checkboxes, not change the inner text error

Tell us what’s happening:
Exercice:
Set the first of your radio buttons and the first of your checkboxes to both be checked by default.

What I do:
Write checked at the end of the input of Indoor.
Write checked at the end of the input of Loving.

The Error:
You should not change the inner text of the Indoor label.
You should not change the inner text of the Loving label.

My Question:
What It’s said that I’m changing the inner text?
What is the correct form to do it?

  **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_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Safari/605.1.15

Challenge: Check Radio Buttons and Checkboxes by Default

Link to the challenge:

When I run your code, it passes all the checks. Try resetting the challenge and putting your solution in again.

1 Like

How do I reset the challenge?

I’ve reseted more than 20 times :frowning: still doesn’t work ;-;

  • What browser are you using? freeCodeCamp supports the most recent version of Safari, Firefox, Edge, and Chrome.
  • Do you have an adblock running? These prevent some tests from running.
  • Do you have a privacy extension that blocks scripts? The tests are scripts.
  • Do you have an extension that changes the appearance of websites (such as a dark mode extension)? This will change the html that freeCodeCamp is trying to read.
1 Like

Wow haven’t checked any of these, but lately I have had some viruses on my mac (default browser virus) I think is maybe because of that :frowning:

Just tryed with my sisters pc and worked out!
Thank you so much for your help ^-^

I’m glad that you were able to proceed. Hopefully you’ll be able to get your computer working again soon!

1 Like

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