If you select the
Indoor radio button and submit the form, the form data for the button is based on its
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.
value attribute to both radio buttons. For convenience, set the button’s
value attribute to the same value as its
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>