What is the correct answer for input checked html

I’ve tried many things but the last two objectives always failed. The last two objectives are: You should not change the inner text of the Indoor label.

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

  **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><input type="radio" name="indoor-outdoor" checked> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
  <label><input type="checkbox" name="personality" checked> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36

Challenge: Check Radio Buttons and Checkboxes by Default

Link to the challenge:

it looks like you deleted some of the existing code. It would be best to reset this step and follow the directions:
Set the first of your radio buttons and the first of your checkboxes to both be checked by default.
Do not delete any existing code. Just add the checked attribute to what it is telling you to.

1 Like

Hello, thank you for answering! I will try to redo the challenge. I hope it will be succesful this time. Thank you again and I hope you have a great day!

I redo the challenge, but it’s still saying that I should not change both of “Indoor” and “Loving” labor. I just add checked attributes beside value on the label. What should I do? T.T

Your browser is kind of old. You should update it.
You can try using a different browser.

We do need to see your updated code in order to be sure that everything has been entered correctly. If you’ve done the above re: the browsers and still have issues please show your updated code here.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

I already posted this problem once, and I redo it. The problem is still the same. It said that I should not change the inner text of “Indoor” and "Loving label. What should I do? I’m so confused.

  **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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36

Challenge: Check Radio Buttons and Checkboxes by Default

Link to the challenge:

The code you pasted above passes for me, so you are doing it correctly. This is probably a browser specific issue. I’d just move on to the next challenge.

1 Like

If you have a browser like Microsoft edge, try pasting the link there and pasting your code because your code is fine and should work. It is probably a browser issue.

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