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,

#noob

  **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://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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://www.freecatphotoapp.com/submit-cat-photo">
  <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
</label>
  <button type="submit">Submit</button>
</form>
</main>
  **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 .