Create a Set of Radio Buttons Help

Create a Set of Radio Buttons Help
0.0 0

#1

Tell us what’s happening:
I keep getting the error -

Dont understand whats wrong :confused:

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>
<label for="indoor"> 
  

  <form action="/submit-cat-photo">
    <input type="text" placeholder="cat photo URL" required>
    
    <button type="submit">Submit</button>
  </form>>
<label>
  <input type="radio" name="indoor-outdoor">
  Indoor
</label>

<label>
  <input type="radio" name="indoor-outdoor">
 Outdoor
</label>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons/


#2

<label for="indoor">

This label is not closed ( it has no input or other stuff, is just old code i guess^^ )

Add a pair of radio buttons to your form,

None of the radio button you have created is inside the <form> tag.

</form>>

Another typo :stuck_out_tongue:


#3

Still get the error


#4

You forgot to remove the <label for="indoor"> above <form>


#5

Thnx Missed that! :slight_smile: