Radio buttons where?

Where do I put the Radio buttons?


<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="https://freecatphotoapp.com/submit-cat-photo">
  <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; rv:85.0) Gecko/20100101 Firefox/85.0.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

1 Like

The radio buttons go inside the form.

2 Likes

At the beginning or the end?

1 Like

Below the other input thats already there

1 Like

Between input and button?

Does it work if you put them there?

1 Like

Does it work if you put them there?

1 Like

The code works if I put them in, but I’m not the one looking for help :stuck_out_tongue:

<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="https://freecatphotoapp.com/submit-cat-photo">
    <input type="text" placeholder="cat photo URL" required><label> 
  <input type="radio" name="indoor-outdoor">Indoor 
</label>
this is what I have 
<
    <button type="submit">Submit</button>
  </form>
</main>
<label for="indoor"> 
  <input id="indoor" type="radio" name="indoor-outdoor">Indoor 
</label>

Your label doesn’t match the example, and you need an outdoor button as well.

1 Like

this is right

<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="https://freecatphotoapp.com/submit-cat-photo">
    <input type="text" placeholder="cat photo URL" required><label> 
  <input type="radio" name="indoor-outdoor">Indoor 
</label>
<label><input type="radio" name="indoor-outdoor">outdoor
</label>
    <button type="submit">Submit</button>
  </form>
</main>

Hi @Maryo23 !

I have added spoiler tags around your code for those who have not worked on this challenge yet since this is a working solution.

Should I not post the answers?

You should only post answers if you are looking for feedback on how to improve your code or if you are looking to add a solution to the guide.

Otherwise, we want the forum to be a place where people get assistance with their code. Not look up answers.

If they wanted to look up answers then that is what the guide is for. :grinning:

2 Likes

ok so I won’t post the answers then

1 Like

A post was split to a new topic: Please help with checkboxes