Need Help I Am Stuck

Tell us what’s happening:
It is ginving me 2 errors.

  1. Each of your two radio button elements should be nested in its own label element.
  2. Each of your label elements should have a closing tag.

I have looked over it multiple times, and still can’t see what I"m doing wrong.
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="/submit-cat-photo">
<label>
<lable for="indoor">
  <input id="indoor" type="radio" name="indoor-outdoor">Indoor
</label>
<label>
<label for="outdoor">
  <input id="outdoor" type="radio" name="indoor-outdoor">Outdoor
  </lable>
  <input type="text" placeholder="cat photo URL" required>
  <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/83.0.4103.97 Safari/537.36.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

ok i fixed the second problem now my issue is it keeps saying Each of your two radio button elements should be nested in its own label element.

I have run your code… you just used label tag extra more in your code… just remove them…

1 Like

@moshiurrahman92, it is great that you know how to solve this challenge, but please don’t just give users code. Here on the forums we try to help people fix their own code so that they can solve similar problems on their own in the future. Thanks for understanding.

2 Likes

@JeremyLT Ok…now I edited my comment…

3 Likes

i removed them but still getting this- Each of your two radio button elements should be nested in its own label element.

Not sure if this is too much help to give, but if your code is still the same as above, you might want to check spelling! :slight_smile:

2 Likes

You want to make sure that your code matches the example nesting in the challenge description. You might have a few typos in your spelling of label.

1 Like

i figured it out it was that and i forgot to separate the indoor-output part. Thanks everyone

3 Likes