Please help im confused!

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">
<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>

Your browser information:

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Hey so I followed the video exactly and I have no clue how to nest these elements into my own label and Im so confused can someone please help me and show me what I did wrong!!!

1 Like

I 'll try to help you
please READ this again:
" By wrapping an input element INSIDE of a label element it will automatically associate the radio button input with the label element surrounding it."

<parent element>
  <nested element> </nested element>
</parent element> 
1 Like
  <input type="radio" name="indoor-outdoor">Indoor 

but you did this:

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

Hi there,
Good job at trying to learn something new.

Here’s a couple things:
From the beginning your page should have the following basic tags:

<body> or <main>
...your content
</body> or </main>

You have a tag which should be inside the ‘main’ area.

The ‘a’ tag in the ‘p’ seems to call a link (href) to a ‘#’, this looks like an ‘id’ call missing a name. Do you have a certain url you want it to go to or were you planning on having javascript run something there.

Inside your form, what is your intent for the indoor/outdoor and the text field.
Do you want them to submit a url in for something.
If so, a bit more descriptive perhaps.

See if this helps.

@ReallyWant2Learn Just to be clear. It’s an fCC challenge, not a personal page.

You should not add or change anything in the code other than what the challenge asks for. The HTML in the challenge is intentionally missing “boilerplate” stuff.