What am i doing wrong? it claims i need 2 radio buttons but i do?

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

These are the things I notice:

  • Your radio buttons are outside of your form and main elements. I assume they should be part of the form.
  • You do not have a for on the first label.
  • You do not have an id on the first input.
  • Both of your inputs have the text “Indoor”
  • There is no = for the type in your second input.
1 Like