HTML 101
Forms (continued)
Using radio
buttons
- Use
label
s - Use
fieldset
s - If doing more than "yes/no", consider using a
select
instead
Example radio
Buttons
Code for Exampe radio
Buttons
<fieldset>
<legend>Are you awesome?</legend>
<input id="yes" type="radio" name="awesome" value="yes">
<label for="yes">Yes</label>
<input id="very" type="radio" name="awesome" value="very">
<label for="very">Very Yes</label>
</fieldset>