Stuck at creating radio buttons

Tell us what’s happening:
I need help. New to this and I’m stuck. I have watched the tutorial video over and over again and I do not know where the error is. Appreciate the help.

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>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20120101 Firefox/33.0.

You are missing a closing tag. Change it to:

<input id=“indoor” type=“radio” name=“indoor-outdoor”>

1 Like

I am also a novice but I would like to try to help. Try wrapping the label tags around the input tag like below. That is what I did and it had no issues with the challenge.

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

Thank you so much, it finally worked. I was wrecking my brain trying to figure out what was wrong. Appreciate the help.

1 Like

I am also stuck, I have read these answers I even went to cheat mode and copied the video instruction code letter for letter. I don’t get this one.

ok this is the answer, i honestly dont know how they expect anyone to get this answer on their own.

If the challenge instructions are not enough search the documentation on the subject - see if you can familiarise with already