<label>性别:</label> <label>男</label> <input type="radio" value="1" name="gender" /> <label>女</label> <input type="radio" value="2" name="gender" />此处label标签的作用
<label>性别:</label>
<label>男</label>
<input type="radio" value="1" name="gender" />
<label>女</label>
<input type="radio" value="2" name="gender" />
此段代码中性别男女为什么用label标签,有什么作用?
采用如下代码不是更简洁吗
性别:<br/> <input type="radio" name = "gender" value = "man">男<br/> <input type="radio" name = "gender" value = "woman">女