I have a doubt to use the value attribute with Radio buttons and check boxes, to solve the codes and run the tests.

First topic Responsive web design exercise 23

Can you post the code you’ve written currently?

Sure, see this one below:


Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
Indoor Outdoor for="loving">input id="loving" type ="checkbox" name="personality"> Loving for="lazy">input id="lazy" type ="checkbox" name="personality"> Lazy for="energetic">input id="energetic" type ="checkbox" name="personality"> Energetic
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>

Just for the record, if you copy the code you’ve written and paste it within the quotes that appear when you click the “</>” icon at the top of the post box, it becomes easier to read.

  <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">
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>

Currently, it’s too difficult to tell exactly what you’ve written, but if you use the same layout as the example in the problem, nest the radio buttons in the form button, and make sure they all have the same name, it should work.

<label for="indoor"> 
  <input id="indoor" type="radio" name="indoor-outdoor">Indoor 
<label for="outdoor"> 
  <input id="outdoor" type="radio" name="indoor-outdoor">Outdoor


I´ll try to run this code again

Also, just for clarity, that post isn’t your code, but the output of your code. :slightly_smiling_face:

If you post what you’ve written (or what is in the center module already), it’s much easier to troubleshoot for everyone in the forums.

Feel free to ask again if you’re still having trouble! :smile:

Thanks Garrison, for your support


Hello 1t.

For future posts, please conform to the MarkDown syntax used in this forum. Read more about it here: Forum Code Formatting

This helps keep the forum nice and tidy.


ok, thank you!