实训篇-Html-表单练习

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Regist</title>
	</head>
	<body>
		<h3 align="center">注册页面</h3>
		<form action="emailtop.html" method="get">
		<table align="center" border="1px" width="350px">
			<tr height="50px" >
				<td width="80px" align="center">用户名</td>
				<td colspan="3" align="center">
					<input type="text" name="username" id="username" value="" placeholder="邮箱,手机" />
				</td>
			</tr>
			<tr height="50px" align="center">
				<td>密码</td>
				<td colspan="3">
					<input type="password" name="pwd" id="pwd" value="" />
				</td>
			</tr>
			<tr height="50px" align="center">
				<td>性别</td>
				<td colspan="3">
					男<input type="radio" name="sex" id="" value="1" checked />
					女<input type="radio" name="sex" id="" value="0" />
				</td>
			</tr>
			<tr height="50px" align="center">
				<td>爱好</td>
				<td colspan="3">
					看书<input type="checkbox" name="hobby0" id="" value="0"  />
					看报<input type="checkbox" name="hobby1" id="" value="1" />
					看电视<input type="checkbox" name="hobby2" id="" value="2" />
					学习<input type="checkbox" name="hobby3" id="" value="3" checked />
				</td>
			</tr>
			<tr height="50px" align="center">
				<td>籍贯</td>
				<td colspan="3">
					<select name="born">
						<option value="0">请选择</option>
						<option value="1" selected="">山东</option>
						<option value="2">河北</option>
						<option value="3">山西</option>
					</select>
				</td>
			</tr>
			<tr height="50px" align="center">
				<td>生日</td>
				<td colspan="3">
					<input type="date" name="bithday" id="bithday" value="" />
				</td>
			</tr>
			<tr height="100px" align="center" >
				<td rowspan="3">介绍</td>
				<td colspan="3" rowspan="3">
					<textarea name="desc" rows="15" cols="35"></textarea>
				</td>
			</tr>
			<tr height="50px">
			</tr>
			<tr height="50px">
			</tr>
			
			<tr height="50px" align="center">
				<td>手机号</td>
				<td colspan="3">
					<input type="number" name="phone" id="phone" value="" />
				</td>
			</tr>
			<tr height="50px" align="center">
				<td>第几周</td>
				<td colspan="3">
					<input type="week" name="week" id="week" value="" />
				</td>
			</tr>
			<tr height="50px" align="center">
				<td>上传文件</td>
				<td colspan="3">
					<input type="file" name="file" id="file" value="" />
				</td>
			</tr>
			
			
			
			<tr height="50px" align="center">
				<td colspan="4">
					<!--具有提交表单中数据的作用-->
					<input type="submit" name="" id="" value="提交" />
					<!--普通的按钮可以响应某系事件-->
					<input type="button" name="" id="" value="OK"  οnclick="alert('你好')"/>
					<!--重置表单中的内容 一般不建议使用-->
					<input type="reset" name="" id="" value="重置" />
				</td>
			</tr>
		</table>
		</form>
	</body>
</html>

  

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

gy-7

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值