You can use radio buttons for questions where you want the user to only give you one answer out of multiple options. Radio buttons are a type of input. Each o

Tell us what’s happening:
Describe your issue in detail here.

  **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://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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="https://www.freecatphotoapp.com/submit-cat-photo">
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
 <lable> 
<input type="radio"name="indoor-outdoor"> indoor
</lable>
 
<lable>
<input type="radio"name="indoor-outdoor">
outdoor
</lable>
</form>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Hey there and welcome to the forums :wave:

It is rather helpful if you give a description of the issue here. It looks like your full question didn’t quite fit in the title.
Also a shorter title makes your topic easier for other users to find via the search bar.


Check the spelling of your tags, <lable> vs <label> :wink:


Also, from a design perspective, it seems like it would make more sense to put your radio buttons above the submit button. I don’t think you’ll need to to pass the lesson, but just something to think about in the future.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.