Dont know how to check without changing inner text

Tell us what’s happening:
Describe your issue in detail here.
I write checked and that works fine. I have googled and looked on youtube and noone seems to have the same question as me. I have no clue how to do it without changing the inner text of the label. Any help is appreciated, thank you!

  **Your code so far**

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

<a href="#"><img src="" 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="">
  <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_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15

Challenge: Check Radio Buttons and Checkboxes by Default

Link to the challenge:

Let’s take a look at the lesson again:

“To do this, just add the word checked to the inside of an input element.”

And then the example:

<input type="radio" name="test-name" checked>

Do you see how they just added the word “checked” at the end of the tag?

I have faith you can do the same thing to the two elements the instructions are asking you update.

I believe I did what you are saying in the code above. I may be mistaken, when I click Run the Tests the check marks come up and are fine but there are two more things I need to do under it.
“You should not change the inner text of the Indoor label.”
“You should not change the inner text of the Loving label.”
I do not under stand where or how to put them in. Thank you for the help.

My advice would be to click the “Reset All Code” button to get a clean start on this challenge. The only thing you want to do is add the “checked” attribute to those to <input> elements. Do not make any other changes. The tests can be very picky about changes they are not expecting.

This is what it shows me if that helps anymore.

I guess I’m not understanding your issue? I just copy/pasted the code you initially gave us above and it passes for me. I think you will need to be very specific about the issue you are having.

The bottom left corner, it says I have to do those four things. I can do the first radio check and the checkbox but I do not understand what it means by you should not change the inner text of the indoor label and the loving label. I really appreciate the help, thank you for being patient.

Yes, it says “you should not change”, so just don’t change them. You don’t have to do anything. I’ll admit, it is slightly confusing why those tests are there if you don’t need to change them. I guess people were accidentally changing them too much. You didn’t change them in the initial code you posted and it passes all the tests, so there is nothing more you need to do, you passed this challenge :partying_face:

Weird, it is not saying I passed every time it always has an X. Oh well, I guess I can mentally say I passed then. I even went on to the next thing and copied the code and placed it back into it and it didn’t work either. Anyways, thank you for helping me!

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