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


<h2>CatPhotoApp</h2>
<main>
  <p>Click here to view more <a href="#">cat photos</a>.</p>
  
  <a href="#"><img src="https://bit.ly/fcc-relaxing-cat" 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="/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>
  </form>
</main>

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
see


input tag should be inside label tag ok

thank you so much. i sure have learnt that