Umm can someone plz help me idk what im doing wrong

Tell us what’s happening:

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">
<input id="indoor"  type="radio" name="indoor-outdoor">
<label for="indoor">Indoor</label>
<input id="outdoor" type="radio" name="indoor-outdoor">
<label for="outdoor">Outdoor</label>
  <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/70.0.3538.102 Safari/537.36 Edge/18.18362.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Your failing test says

Each of your two radio button elements should be nested in its own label element.

I suspect that you watched the video but didn’t carefully read the text of the challenge description. The challenge description provides an example of nesting and explains why it is important.

<label for="indoor"> 
  <input id="indoor" type="radio" name="indoor-outdoor">Indoor 
</label>

Check this question

1 Like

thank you but i still dong get how am i supposed to nest the radio button

don’t get how im supposed to nest…

What part of the example can I help explain better?

<!-- This is the label -->
<label for="indoor"> 
  <!-- This is nested inside of the label -->
  <input id="indoor" type="radio" name="indoor-outdoor">Indoor
<!-- This is the closing tag for the label -->
</label>

I have the same typing as you gave me I just dont get the type=“radio” like how am I doing it wrong

You aren’t hyping the same thing.

You have:

<input id="indoor"  type="radio" name="indoor-outdoor">
<label for="indoor">Indoor</label>

The example has:

<label for="indoor"> 
  <input id="indoor" type="radio" name="indoor-outdoor">Indoor
</label>
1 Like

oh so im supposed to put label then type the input text

1 Like

There you go. That’s exactly what you need to do!

omg thank you soo much for explaining it to me.

1 Like