Can someone help me with HTML Learning on step 49

Step 49

If you select the Indoor radio button and submit the form, the form data for the button is based on its name and value attributes. Since your radio buttons do not have a value attribute, the form data will include indoor-outdoor=on, which is not useful when you have multiple buttons.

Add a value attribute to both radio buttons. For convenience, set the button’s value attribute to the same value as its id attribute.

And there is the code:

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

What should i do with this step?

Hello, you need to put in a value along with all the others, id, type, name, and value set to
a value. Hope this helps.

Hey word of advice. Please use the “Ask for help” button in the challenge. It’ll provide a link to the challenge so we know what you are struggling with.

thank you, it really helps. :smile:

2 Likes