Create a Set of Radio Buttons please help I'm stuck

Create a Set of Radio Buttons please help I'm stuck
0

#1

Tell us what’s happening:
i think everything is right but its telling me its wrong

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"indoor "indoor-outdoor">
  <label for="indoor">indoor</label>
  <input id="outdoor" type="radio" outdoor "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 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6.

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


#2

The name attribute is not properly included with your code.

name="indoor-outdoor"

#3

i have already tried that and it didn’t work @yoelvis


#4

:point_up_2: This is not being interpreted

@Jacob8Taylor Try


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

#5

that doesn’t work either @yoelvis


#6

@Jacob8Taylor Add a pair of radio buttons to your form, each nested in its own label element.

For example:

<label...><input...>Indoor</label>

The input element must be within label element.