Home  >  Article  >  Web Front-end  >  How to create various options on the registration page

How to create various options on the registration page

一个新手
一个新手Original
2017-10-07 11:41:431192browse

效果图如图,其主要是基本的选项按钮<!DOCTYPE html><html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<form action="index.html" name="" method="post">
			<p>
				用户名:<input name="user" type="text" />
			</p>
			<p>
				密码:<input name="password" type="password" />
			</p>
			<p>
			性别:
			<input type="radio" name="sex" value="男" checked="checked" />男
			<input type="radio" name="sex" value="女" />女
			</p> 
			<p>
				出生日期:
				<input name="date" type="date" />
			</p>
			<p>
				学历
				<select name="xueli">
					<option value="中学">中学</option>
					<option value="大学">大学</option>
					<option value="博士">博士</option>
					<option value="研究生">研究生</option>
				</select>
			</p>
			<p>
				爱好:
				<input type="checkbox" name="hobby" value="篮球" />篮球
				<input type="checkbox" name="hobby" value="足球" />足球
				<input type="checkbox" name="hobby" value="橄榄球" />橄榄球
				<input type="checkbox" name="hobby" value="乒乓球" />乒乓球
			</p>
		</form>		
	</body>
</html>

The above is the detailed content of How to create various options on the registration page. For more information, please follow other related articles on the PHP Chinese website!

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