Help in Create a Set of Radio Buttons challenge

Hello! I need some help, my problem is with the label, only that, everything else is fine, did I missed something? If I run the code, it just says: " Each of your label elements should have a closing tag."

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Your structure is a bit off. This is the example:

<label for="indoor"> 
  <input id="indoor" type="radio" name="indoor-outdoor">Indoor 
</label>

This is what you have:

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

First of all, there some confusion about your labels - you have more opening label elements than closing. You also aren’t closing your input elements.

The page doesn’t know how to parse it so it’s getting confused in the tests messages.

1 Like

Ahh, seems like I misunderstood the steps and had them all mixed up, it did worked now! Thank you very much :smiley: :smiley: :smiley:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.