How do i add a radio button can someone help

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

  **Your code so far**

<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<form action="">
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS aarch64 14324.72.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.91 Safari/537.36

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

The code shown is the starter code. You haven’t shown us what you do not understand.
There is an example in the lesson.
Is there something you do not understand?

All you need to do is add two elements to your code, one should be for=“outdoor” the other for=“indoor”. The last code sample in the instructions have the string for indoor so it can be copied and modified to finish the challenge. Remember that both elements must contain the name “indoor-outdoor” so that code should be the same in both label elements.

A radio button can be added by changing the “type” of your “input” to = radio

Hope it helped

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