How do i create a Set of Radio Buttons

Tell us what’s happening:

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="/submit-cat-photo">
<label indoor for="indoor"> <label outdoor for="outdoor" name="indoor-outdoor">
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0.

Link to the challenge:

Use the MDN documentation to learn about html elements and much more. Develop the habit to use it, it’s a valuable tool for all web developers.
About your specific case:

1 Like

Thanks. Helped but i am not getting the nesting of radio button elements in their labels

Nest one label in each list item <ul><li><label></label></li>.........</ul>

1 Like