Hello, may anybody help , i don't know where should i put radio button tag

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>
  <label for="indoor">
    <input id="indoor" type="radio"name="indoor-outdoor">indoor
   
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul></label>
<p>Top 3 things cats hate:</p>

<ol>
  <label for="indoor">
    <input id="indoor" type="radio" name="indoor-outdoor">outdoor
   <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
  </ol> </labe>
<form action="https://freecatphotoapp.com/submit-cat-photo">
  <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/86.0.4240.111 Safari/537.36 OPR/72.0.3815.186 (Edition Campaign 34).

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

The more information you give us, the more likely we are to be able to help.

Hi @mousa-rzk!

  1. You are missing a closing label tag here.
name="indoor-outdoor">outdoor <!--missing label tag-->
  1. There is a typo here that you can delete.
  </ol> </labe><!--delete this-->
  1. This text should be indoor so it matches the id.
name="indoor-outdoor">outdoor<!--change text-->
  1. Once you fix the first label for indoor than you need to create another label for outdoor.

Hope that helps!

1 Like

okay in which tag should i put the radio button tag , in form or in ul and ol

There is no radio button tag. Radio buttons are a type of input.

type="radio"<!--this is it-->
1 Like

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></label>
<p>Top 3 things cats hate:</p>

<ol>
   <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
  </ol> </labe>
<form action="https://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">indoor
    </label>
    <label>
      <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/86.0.4240.111 Safari/537.36 OPR/72.0.3815.186 (Edition Campaign 34).

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Hello !
Here you closed a label without even have it in first

and here you mistaken

2 Likes