Create a Set of Radio Buttons (help)

Tell us what’s happening:

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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons

You need to nest the radio buttons in their labels.

Example:

<label for="indoor">
      <input id="indoor" type="radio" name="indoor-outdoor">
      Indoor
</label>
4 Likes

each of the radio button elements should be added within the form tag. that showing me i cant understand

my code can`t run? how can i run it?

i need help with that challenge. i cant run my code.

We need to see your code. If the test doesn’t run at all chances are you are using an unsupported browser. Use Chrome or Firefox.

hi. my browser is updated. i have google chrome. i ran the same code but it keeps giving me problems. may you please help me?

show your code
remember that to nest two elements you need to put the nested element inside an other one <div><img></div> (this is an img element nested in a div element)
if you do <div></div><img> they are just siblings and not nested

Thank you for your help. i figured it out.