Learn HTML by Building a Cat Photo App - Step 50

Tell us what’s happening:

on Question 50:
The error I am getting is
Sorry, your code does not pass. Hang in there.
Both radio buttons should still be located between opening and closing label element tags.
My code is:

Indoor: Outdoor: I have tried as many variations I can come up with and nothing works.

Your code so far


<!-- User Editable Region -->

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

<!-- User Editable Region -->

Your browser information:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 50

Okay. Do you know what that hint means then?

P.S If you need to see the seed code, let me know.

hello, yes it means that the radio button code "type=“radio” " should be between "<label for… and

or am i incorrect?
thank you for your help.

That’s not quite what the hint means. Rather it means the input elements should be nested inside of their respective label elements.

Ex)

<*opening label tag*>*label text* <*radio button element*> </closing label tag>
1 Like