Does anybody know why it wont let me move on?

It is saying," Each of your label elements should have a closing tag."


<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">
  <label> 
<label for="indoor"> 
<input id="indoor" type="radio" name="indoor-outdoor">Indoor </label>

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

  
  <input type="text" placeholder="cat photo URL" required>    
  <button type="submit">Submit</button>
</form>
</main>

Your browser information:

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Hello! Welcome to the community :partying_face:!

You have an extra label here:

<form action="/submit-cat-photo">
  <label><!-- This one -->
<label for="indoor"> 

Oh, Thank you. I am new to coding

1 Like

Keep it up, you’re doing well! We all make these mistakes :slight_smile: (even after you have more experience :stuck_out_tongue:)

Thank you for helping me. I didn’t know people on here were this nice , until I realized that we all are a community. A coding/hacking community!

1 Like

Tell us what’s happening:
i cant find the problem… Your radio buttons should be given the name attribute of indoor-outdoor .

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">
  <label> 
<label for="indoor"> 
<input id="indoor" type="radio" name="indoor-outdoor">Indoor </label>

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

  
  <input type="text" placeholder="cat photo URL" required>    
  <button type="submit">Submit</button>
</form>
</main>

Your browser information:

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

You have an orphan extra opening label element:

/* ... */
<form action="/submit-cat-photo">
  <label> 
<label for="indoor"> 
<input id="indoor" type="radio" name="indoor-outdoor">Indoor </label>
/* ... */

It might help if you get in the habit of formatting your code as you work - it makes things like this easier to spot.

Tell us what’s happening:

this is happening… One of your radio buttons should have the value attribute of indoor .

One of your radio buttons should have the value attribute of outdoor .

One of your checkboxes should have the value attribute of loving .

One of your checkboxes should have the value attribute of lazy .

One of your checkboxes should have the value attribute of energetic . Whoever helps me will be such a big help. i am new.

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">
  <label> 
<label for="indoor"> 
<input id="indoor" type="radio" name="indoor-outdoor">Indoor </label>

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

  
  <input type="text" placeholder="cat photo URL" required>    
  <button type="submit">Submit</button>
</form>
</main>

Your browser information:

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

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Seems fine to me.
Just that there is one unnecessary label tag.

oh… Well then thank you.

I don’t see any value attribute in your code

can you point it out for me?

also, there should be 2 radio buttons and 3 checkboxes…