1.单选框
单选 <input type="radio" >
2. 默认选中
默认选中 <input type="radio" checked="checked" >
3.分组
分组即,多个单选框,都在一个分组里,同一时间只能选中一个单选框
设置name属性相同即可
<p>今天晚上做什么?</p>
学习java<input type="radio" name="activity" value="学习java" > <br/>
东京热<input type="radio" checked="checked" name="activity" value="tokyohot" > <br/>
dota<input type="radio" name="activity" value="dota" > <br/>
LOL<input type="radio" name="activity" value="lol"> <br/>