Create a Set of Radio Buttons CODE IS RIGHT?

Create a Set of Radio Buttons CODE IS RIGHT?
0

#1

Tell us what’s happening:

Cant seem to pass? asking for… both are there?
Make sure each of your label elements has 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://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 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>
      <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/69.0.3497.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons


#2

Looks like you’ve touched other things as well.

This should be input not label.
You also have an extra opening label tag.

Finally, give for attribute to your last label like this
<label for=“outdoor”>

Good luck!


#3

<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>

<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>


#4

You have extra <label> still