【html基础】单选和多选input设置标签的方式

<input type="radio/checkbox">设置标签的方式:

 - 简洁版:不加label标签,直接<input>yyy,其中yyy是标签,下同
 - 进阶版:<label><input>yyy</label>
 - 最终版:<input id="xxx"><label for="xxx">yyy</label>,其中label的for标签要和input的id标签对应

你可能感兴趣的:(前端,html)