Stock again could someone please explain better please the radio i know of is for listening to music not for coding 😁

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

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Radio buttons in coding, in forms, means that the user is presented with more than one choice but of all the choices they can only select one. The name came from old radios where you pressed a button to select a station. When you pressed another button to select a different station, the previously selected button popped out. Thus you could only have one at a time. Radio buttons in coding are the same. Of all the choices given to the user they can only select one.

On the other side is checkboxes. The user is presented with more than one choice but they can select one, two or all of the choices.

Hope that helps.

2 Likes

thanks alot it really helped