使用简单的Table标签制作注册页面

代码及其解释

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<!-- 
			The form tag
				action:the address of submit
				method:
					get:default submission method,will concatenate(拼接) the parameters in the link
						it has the size bound(大小限制),so don't use get if you transmit large data
					post:Encapsulate(封装) parameters(参数) in the request body
						 it hasn't size bound.
						 
			input:
				type:the type of input item(项)
				name:it is regarded as the name of parameters when the form is submitted.
				id:name the input item to facilitate us to find it when we use it
		-->
		<form action="Home page.html" method="get">
			<!-- 
				the distinction between post and get
				link:https://blog.csdn.net/FZUMRWANG/article/details/89484399
			 -->
			<!-- if you use "post,it will hidden the parameters" -->
			<!-- 
				hidden area:mainly used to store some ID message in the page
			 -->
			<input type="hidden" value="djfjskfjskfajs" />
			<!--文本输入框-->
			<!-- if you input data in the text and click the submit button,the name and the data will appear at website links-->
			用户名:<input type="text" name="username" id="123" /> <br />
			<!--密码框-->
			密码:<input type="password" /> <br/>
			确认密码:<input type="password" /> <br />
			邮箱:<input type="text" /> <br />
			手机号码:<input type="text" /> <br />
			照片:<input type="file" /> <br />
			<!--radio取相同的名字表示一组就能实现单选效果-->
			性别:<input type='radio' name='sex' />男<input type='radio' name='sex' />女 <br />
			爱好:
				<input type="checkbox" />抽烟
				<input type="checkbox" />喝酒
				<input type="checkbox" />撸代码
				<input type="checkbox" />大保健
			<br />
			择偶要求:<textarea clos="40" rows="4">身材火辣</textarea>
			<br />
			籍贯:
				<select>
					<option>--请选择--</option>
					<option>湖北</option>
					<option>内蒙</option>
				</select>
				<br />
			验证码:<input type='text' /> <br />
			
			<input type="submit" value="sign in" />
			<input type="submit" value="sign up" />
			<input type="button" value="ordinal(普通的) button" />
			<input type="reset" value="reset button" />
		</form>
        
	</body>
</html>

显示效果

在这里插入图片描述

点击sign in跳转

在这里插入图片描述

稍微好一点点的版本

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<table width="100%">
			<tr>
				<td background="img/325154.jpg" height="500px" width="100%">
					<table border="5px" width="60%" height="80%" bgcolor="snow" align="center">
						<tr>
							<td>
								<table width="60%" align="center">
									<tr>
										<td colspan="2"><font color="blue">会员注册 USER REGISTER</ font></td>
									</tr>
									<tr>
										<td>用户名:</td>
										<td>
											<input type="text" placeholder="请输入用户名"/>
										</td>
									</tr>
									<tr>
										<td>密码:</td>
										<td>
											<input type="password" placeholder="请输入密码"/>
										</td>
									</tr>
									<tr>
										<td>确认密码:</td>
										<td>
											<input type="password" placeholder="请再次输入密码"/>
										</td>
									</tr>
									<tr>
										<td>E-mail:</td>
										<td>
											<input type="email" placeholder="请输入邮箱"/>
										</td>
									<tr>
										<td>姓名:</td>
										<td>
											<input type="text" placeholder="请输入真实姓名"/>
										</td>
									</tr>
									<tr>
										<td>姓别:</td>
										<td>
											<input type="radio" name="sex" /> 男
											<input type="radio" name="sex" /> 女
										</td>
									</tr>
									<tr>
										<td>出生日期</td>
										<td>
											<input type="data" />
										</td>
									</tr>
									<tr>
										<td>验证码</td>
										<td>
											<input type="text" placeholder="请输入真实姓名"/>
										</td>
									</tr>
									<tr>
										<td></td>
										<td>
											<input type="submit" value="注册"/>
										</td>
									</tr>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>

显示效果在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值