Help with Creating a Set of Radio Buttons

Tell us what’s happening:
someone help please. tell me what wrong with this code

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">
    <input id="indoor" type="radio" name="indoor-outdoor">
    <label for="indoor"> Indoor </label>
    <input id="outdoor" type="radio" name="indoor-outdoor">
    <label for="outdoor"> Outdoor </label>
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>

Hi there @oh_cee_ta!

At simple view looks fine to me, but please tell me what’s the error you’re getting to check and try to help you. :smiley:

thanks for the response, still a beginner. i just didn’t follow the conditions to pass the test. i needed to nest the input attribute in the label function

Great! then you figured it out and pass, right? We all started as a beginner, don’t worry about that and keep coding! :man_technologist:

everything was correct but

input tag should be inside label tag ok

thank you so much. i sure have learnt that