首页 >web前端 >html教程 >HTML Notes_html/css_WEB-ITnose

HTML Notes_html/css_WEB-ITnose

WBOY
WBOY原创
2016-06-24 11:56:57877浏览

Label tag and input in form

<form action="">  <label for="male">Male</label> //for and id should be same  <input type="radio" name="sex" id="male" value="male"><br>  <label for="female">Female</label>  <input type="radio" name="sex" id="female" value="female"><br><br>  <input type="submit" value="Submit"></form>

 

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn