1. Basic syntax
<input type= "ratio" value= "data submitted to the server" Name= "control named for background control" >
Input, you can also add checked= "checked" to indicate the default check value
<input type= "checkbox" > check box
2. Precautions:
In the Radio box, to ensure that the name of each option is the same value, to achieve the single selection effect.
However, in the check box, the name is not the same as the multi-select effect
1 <formname= "Test"Mathod= "POST"Action= "Http://www.baidu.com">2Do you like to travel?<BR/>3 <inputtype= "ratio"name= "Love"value= "1"checked= "Checked">like4 <inputtype= "ratio"name= "Love"value= "2" >don't like5 <BR/>6 <BR/>7What kinds of sports are you interested in?<BR/>8 <inputtype= "checkbox"name= "CheckBox1"value= "Running">Running9 <inputtype= "checkbox"name= "2"value= "Swimming">SwimmingTen <inputtype= "checkbox"name= "3"value= "Mountaineering">Mountaineering One </form>
Considerations for radio boxes and multi-marquee boxes