I cant figure out what is the problem

Tell us what’s happening:
i cant figure out whats wrong with my code here. please help!

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 for="indoor-outdoor"><input type="radio" name="indoor-outdoor" value="indoor-outdoor"> indoor
  </label>
  <label for="outdoor"><input type="radio" name="indoor-outdoor" value="outdoor"> outdoor
  </label><br>
  <label for="loving"><input type="checkbox" name="personality" value="loving"> Loving</label>
  <label for="lazy"><input type="checkbox" name="personality" value="lazy"> Lazy</label>
  <label for="energetic"><input type="checkbox" name="personality" value="energetic"> Energetic</label><br>
  <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/80.0.3987.149 Safari/537.36.

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:

What do the failing tests say? What are the different approaches you have tried?

the failing test says-
One of your radio buttons should have the

value

attribute of

indoor

. One of your radio buttons should have the

value

attribute of

outdoor

ive tried creating seperate lables for the radio type with each one with its respective value. still am getting the exactly same result

Reset the challenge and enter your values again. This time, do not change anything else.

1 Like
<label for="indoor"><input type="radio" name="indoor-outdoor" value="indoor-outdoor"> indoor</label>

outdoor

this is the code i typed instead. its giving me the same result. ill try rreseting the challange thank you!

Did you change the capitalization of the label contents?

1 Like

i reset the challange and it worked , thank you guys!