Home >Web Front-end >HTML Tutorial >HTML Notes_html/css_WEB-ITnose

HTML Notes_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:56:57869browse

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>

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn