Need help to Create a Set of Radio Buttons

Need help to Create a Set of Radio Buttons
0

#1

Hello everybody! I was trying to do the lesson about creating a set of radio buttons and can not seem to to do the code right. if you can help me and tell me what I am doing wrong please help. (=


<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


#2

Your inputs should be inside the label tags, with a label for each radio button.

<label>
  <input ...>text
</label>

Now you should have two labels for indoor and outdoor with radio button inputs.


#3

Look closely at the provided example and the instructions. Also, look at the test case(s) your are failing. Your code is not quite the same.

Breaking down the instructions do you see which you missed?

  1. Add a pair of radio buttons to your form,
  2. each nested in its own label element.
  3. One should have the option of indoor and
  4. the other should have the option of outdoor .
  5. Both should share the name attribute of indoor-outdoor to create a radio group.

#4

I honestly don,t really understand what you mean.