Dont know where is the error ? he said no closing tag but have 2 of them for each label

Tell us what’s happening:

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>
  <label>
    <input id="indoor" type="radio" name="indoor-outdoor"> Indoor
    </label>
    <label>
    <input id="outdoor" type="radio" name="indoor-outdoor"> Outdoor
    </label>
  <button type="submit">Submit</button>
  </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/84.0.4147.89 Safari/537.36.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

you need to modify the label. each one of the radio buttons should be nested within a label tag and has for section.

 
  <label for="outdoor"> 

</label>

@JeremyLT yeah that was the problem all the time dont see it because only look on the 2 radio buttons thx

Your label must come in pairs and must have for="…(example given)"

It looks like you have a stray closing tag after the button.

1 Like