Help me with Step 48

If you select the Indoor radio button and submit the form, the form data for the button is based on its name value and 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.

Help me!
I don understand, where i need write “value”, or i must delete something ?
Its my code now:

      <label><input id="indoor" type="radio" name="indoor-outdoor"> Indoor</label>
      <label><input id="outdoor" type="radio" name="indoor-outdoor"> Outdoor</label>
      <input type="text" name="catphotourl" placeholder="cat photo URL" required>
      <button type="submit">Submit</button>
    </form>
  </section>
</main>
1 Like

hey tela,
Adding a value attribute to both radio buttons. For convenience, is to set the button’s value attribute to the same value as its id attribute.
Remember for both radio buttons is

id =“indoor” and id=“outdoor”

so what needs to be done is adding the name attribute which is the same as

name=“the value of id”
Try figuring out the id value after this hint

4 Likes

name is an attribute just like id or type you using already, give it a name attribute with value what you have used for id attribute

An attribute adjust element behavior for your needs, like type in the button

so when you wanna the button to do specific thing you add attribute to it like this

<button attribute="attributeValue">Text</button>
1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.