Set of Radio Buttons. Cant get past

Tell us what’s happening:

I cannot get past this part, my code looks right and seems to be functioning correctly. any help?

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">
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>
  </form>
  <form>
    <label for="indoor">
      <input id="indoor" type="radio" name-"Indoor-Outdoor">Indoor
    </label>
    <lable for="outdoor">
      <input id="outdoor" type="radio" name-"Indoor-Outdoor">outdoor
    </lable></form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) 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

You have a typo in your second set of label tags

1 Like

Hi,

Check the name attributes in the radio inputs of your code(you have used - instead of =). Also make sure that the attribute names and label names are exactly the same as given in the exercise (case-sensitive).