print("Finding Difficulty")


Hi this is RM MUSIC.
I kind of having a trouble in completing the challenge of making checked default.
So according the challenge, the first radio buttons should be checked by default.
Please someone help me to solve this problem as quickly as possible.

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="/submit-cat-photo">
  <label for="indoor"><input id="indoor" type="radio" name="indoor-outdoor" value="indoor"> Indoor</label>
  <label for="outdoor"><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor" checked> 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" checked> Lazy</label>
  <label for="energetic"><input id="energetic" type="checkbox" name="personality" value="energetic" checked> 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 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.

Challenge: Check Radio Buttons and Checkboxes by Default

Link to the challenge:

the first button should be checked by default:

  • between indoor and outdoor, indoor should be checked by default as it is the one listed first: what have you checked by default?
  • for the radio buttons you have two elements checked by default. which of them is the first one?

Your first radio button on your form should be checked by default.
You have 2 radio buttons (indoor and outdoor).
Indoor is the first one so it should be checked.
Outdoor is the second so it should not be checked.

Your first checkbox on your form should be checked by default.
You have 3 checkboxes (loving, lazy, energetic).
Loving is the first one so it should be checked.
Lazy and energetic is the second and third so they should not be checked.

Thank you very much for your solution.