Creating radio elements within its own label element

This is why I wish I had a coding mentor haha. I swear i have this nested in its very own label element and yet the test says otherwise. The rest of the code is correct according to the test so it’s just a matter of what I have done wrong with regard to the label element… I can’t see the issue…

Thanks for the ongoing help fam,


  **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>
  <label for="indoor">
    <input id="indoor" type="radio" name="indoor-outdoor">indoor
    <input id="outdoor" type="radio" name="indoor-outdoor">outdoor
  <button type="submit">Submit</button>
  **Your browser information:**

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

" Add a pair of radio buttons to your form, each nested in its own label element."

This means you should have a label for each radio button input. How many radio buttons did you add? How many labels did you add? The answer to those two questions should be the same number.

1 Like

Thanks! The instructions are sometimes a little vague for me haha

It could be a good Idea, if there was some form of small group Mentoring / Volunteering available at freeCodeCamp.

1 Like

I think that isn’t a bad idea , Asides learning the fundamentals of programming … Mentorship is the next way to help reduce the stress while learning to code .

Let hope in the future the mentorship option comes up .

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