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

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

#1

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


<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="/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>
  </form>
</main>

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:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons/


#2

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?


#3

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
    </label><br><br>

The <br> makes it spacious.


#4

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


#5

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.


#6

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