Code stuck he can i get some help here please

**Tell us what’s happening:**trying to fix this hours. tryed many ways still not working.
it says
Your radio buttons should be given the name attribute of indoor-outdoor .

indoor

outdoor

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="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">indoor</label>
<label><input type="radio" name="outdoor-indoor">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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36 Edg/83.0.478.50.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

let’s see…

the tests say:

Your radio buttons should be given the name attribute of indoor-outdoor .

In your code I see this:

i have as you can see but still says radio button should be given the name
this is what i done

indoor

outdoor

include your code within ```(triple backticks)

indoor"""

outdoor"""

how do i do that please

your both input[type="radio" should have name="indoor-outdoor"
As mentioned by @ilenia you have value of one of the attribute as outdoor-indoor, which is wrong.

i have done exactly how you done

Have a look at the second input. You have named it outdoor-indoor.

It should be indoor-outdoor not outdoor-indoor

1 Like

Then it should pass… I’ve copied your code and it passed tests after I fixed the name of second radio button

1 Like

thank you for both it worked now
(:smile:

No problem, and please don’t be discouraged. This is very normal for even experienced programmers (we just have done these mistakes so many times that we can just find out the mistake faster)

1 Like

I will be continuing my work its fun and sometimes annoyed when i am stuck
with the help of you friends i will get through
thanks

1 Like