打开可以编辑html的软件,输入如下代码:
<form>
<label for="hello">hello</label>
<input type="radio" name="sex" id="hello" />
<br />
<label for="world">world</label>
<input type="radio" name="sex" id="world" />
</form>

解释:注意代码中的for和id,这两个要一样。效果就是当你的鼠标的指针指到
lable标签时,对应的id就会获得焦点。
来源https://jingyan.baidu.com/article/ab0b563085d4a8c15afa7da6.html