你对什么运动感兴趣:<br />
<label for="jog">慢跑</label>
<input type="checkbox" name="jog" id="jog"><br />
<label for="climb">登山</label>
<input type="checkbox" name="climb" id="climb"><br />
<label for="basletball">篮球</label>
<input type="checkbox" name="basletall" id="basletall"><br />
<label for="jog">慢跑</label>
同一组的单选按钮,name 取值一定要一一致
<input type="radio" name="sports" value="1" id="jog"><br />
<label for="climb">登山</label>
<input type="radio" name="sports" value="2" id="climb"><br />
<label for="basletball">篮球</label>
<input type="radio" name="sports" value="3" id="basletall"><br />