Https://forum.freecodecamp.org/t/create-a-set-of-radio-buttons-please-help/269548

Tell us what’s happening:
I add the closing tag for , but it says I still need to add one to finish it, any helps?Thx!

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="https://freecatphotoapp.com/submit-cat-photo">
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
  
  <!-- <label>  -->
  <label for="indoor"> 
    <input id="indoor" type="radio" name="indoor-outdoor">Indoor    
  </label>

  <!-- <label>   -->
  <label for="outdoor"> 
    <input id="outdoor" type="radio" name="indoor-outdoor">Outdoor 
  </label>
</form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Hi @huangwxlaokeai!

Your problem is here

If you delete those comments then the test will pass.

In html, there are reserved characters like < and >.

The computer didn’t know how to process this part <!-- <

So the correct way to write those comments would be to use html entities
<!-- &lt;label&gt; -->

1 Like

Also, for future posts, you will receive more responses if you avoid posting the challenge link in the subject line.

Instead, use a subject line like “Need help with radio buttons”

1 Like

really thankful for the detailed answer!