Create a Set of Radio Buttons<<<<<<here again

Tell us what’s happening:
I cant get the same name attribute indoor-outdoor…i do so but seems wrong !what is wrong with the name attribut of radio buttons??

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"><label>
    <input type="radio">name="indoor-outdoor">indoor</label> <label><input type="radio">name="indoor-outdoor">outdoor</label> placeholder="cat photo URL" required>
    <button type="submit">Submit</button>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:

You have this “>” here.
Get rid of it and it should work.
Same for the second radio input.

You’ll have to check the syntax properly for this line.
You have many syntax errors here.
Does this help?

1 Like

First step would be to go over the tutorial again, and add then follow the example, because it says it all. But after trying your best again, you could take a look at this…PS Check after trying again.

<br><br><label for="label-given">
      <input type="radio" name="name-given-in-code">first value</label><br>
    <label for="label-given">
      <input type="radio" name="name-given-in-code">second value

The <br> makes it spacious.

1 Like

directly worked…thank you soo…i should learn more how to and the uses of these markes

If you continue doung the challenges and then to projects and a little playing around with code on your own, you will get used to the syntax.
Glad i could help.

1 Like

Don’t close the Input Tag before adding the name="" value

1 Like