Radio buttons are often used on questionnaires to indicate a person's opinion, or their likes and dislikes. They can
also be used for 'yes' or 'no' responses. Radio buttons should be used when only one answer from a set of possible
HTML Forms
Notice that the
same name — chocolate — has been used for each element. This is necessary because when the
form is submitted only the value of the currently selected radio button will be submitted with the given name. The
software processing the data will either receive chocolate=yes or chocolate=no, which allows for straightforward
processing.
Do'stlaringiz bilan baham: