I don't understand what it wants me to do can you help please someone?

I keep trying to make a radio thing and a label but it says I am wrong what do I do can someone help?

  **Your code so far**

<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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="https://www.freecatphotoapp.com/submit-cat-photo">
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>

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

  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13816.82.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.218 Safari/537.36

Challenge: Create a Set of Radio Buttons

Link to the challenge:

You need to follow the directions closely.

You were given these as a model:

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


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

choose one and follow it closely.

Also, the messages for the failed tests are telling you what the problem is.

For example:

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

One of your radio buttons does not have that.

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

I’m not sure what you are trying to do. You have one <label> element and two </label> elements. You should have two of each.

Each of your label elements should have a closing tag.

I mean, I guess you have two closing tags. But the fact that you have only one opening tag may be confusing it.

One of your radio buttons should have the label outdoor .

You don’t have that.

Each of your radio button elements should be added within the form tag.

That is not the case - those should be inside the existing form element.

I also see that your first radio button input does not have a closing angle bracket (>) and there is an “a” before it for some reason.

See if you can figure some of those out. If you run into trouble, check back with us.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.