首页 > 代码库 > html5,表单与label标签配套使用

html5,表单与label标签配套使用

<form action="">
<input type="checkbox" name="dx" vhttp://www.mamicode.com/alue="a" id="a">    
<label for="a">a</label>
<input type="checkbox" name="dx" value="http://www.mamicode.com/b" id="b">
<label for="b">b</label>
<input type="checkbox" name="dx" value="http://www.mamicode.com/c" id="c">
<label for="c">c</label>

<label><input type="checkbox" name="dx" value="http://www.mamicode.com/d">d</label>

<br>
<input type="radio" name="radio" value="http://www.mamicode.com/A" id="aa">
<label for="aa">aa</label>
<input type="radio" name="radio" value="http://www.mamicode.com/B" id="bb">
<label for="bb">bb</label>
<input type="radio" name="radio" value="http://www.mamicode.com/C" id="cc">
<label for="cc">cc</label>
<label><input type="radio" name="radio" value="http://www.mamicode.com/D">d</label>
</form>

html5,表单与label标签配套使用