Your radio buttons should be given the name attribute of indoor-outdoor. Why is not accepting it please?

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="https://freecatphotoapp.com/submit-cat-photo">
  <input type="text" placeholder="cat photo URL" required> 
  <button type="submit">Submit</button>


<label> 
<input type="radio"name="Indoor"> Indoor
  </label>

<label>
<input type="radio"name="Outdoor"> Outdoor
  </label>
  </form>
</main>

Your browser information:

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

The name attribute for each button should be “indoor-outdoor” :slight_smile:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

The more information you give us, the more likely we are to be able to help.

Thank you Michael, I have already tried it has shown below but is still not working, the error shown is : Your radio buttons should be given the name attribute of indoor-outdoor .

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

  <label>
<input type="radio"name="Indoor-Outdoor"> Outdoor
    </label>
    </form>
</main>

that is, because you gave it a name attribute of ‘“Indoor-Outdoor”’ :wink:

(instead of ‘indoor-outdoor’)

Why my message get edited? Is not what I have posted!

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Thank you! So simple when you know isn’t :smiley:

Hi Ariel,

I have sorted the problem.

Regards,

Paolo

Good job on working it out. Happy coding!

Thank you, It would be nice to have some friends that can talk about coding, is something so new for me.

image001.jpg

That’s what we’re here for! You have a whole bunch of coding friends now.

1 Like

Hi Ariel,
What I would love is to have a chat rather than write on web page, I think it is more clear and straightforward and avoid misunderstanding.

Hey @silver2008,

If you want to chat casually with other coders, you can join us in our Discord server.

Here’s the invite link:

Hi Ariel,

I hope you are well, I was wondering if you have learn coding with the freeCodeCamp? I have submitted the four modules requested by them and I was wondering how long did it took before you get back to you ?

Best regards.

Many thanks,

Paolo

image001.jpg

I’m sorry, but I have no idea what you are asking.

1 Like

Ok thanks

image001.jpg