HTML练习-学生注册表格

<html>
	<head>
		<meta charset="utf-8"/>
		<title>ch03第一题</title>
		
		<script type="text/javascript">
			function dianJi() {
				alert("登录成功!") ;
			}
		</script>
	</head>
	
	<body >
		<table border="1" width="60%" height="400" align="center" cellspacing="1" >
			<form>
				<tr>
					<td>学生姓名:</td>
					<td colspan="3"><input type="text" size="30" /></td> 
				</tr>
				
				<tr>
					<td>密码</td>
					<td colspan="3">
						<input type="password"  size="30"/>
					</td>
				</tr>
				
				<tr>
					<td>性别:</td>
					<td colspan="3">
							<label for="m"></label>
						<input type="radio" id="m" name="sexn" value="男"/ checked>
						<input type="radio" id="w" name="sexv" value="女"//>
							<label for="w"></label></td>
				</tr>
				
				<tr>
					<td>个人爱好:</td>
					<td colspan="3">
						<input type="checkbox" id="h"/>
							<label for="h">音乐</label>
						<input type="checkbox" id="l"/>
							<label for="l">美术</label>
						<input type="checkbox" id="s"/>
							<label for="s">电影</label>
					</td>
				</tr>
				
				<tr>
				<td >交友目的:</td>
					<td colspan="3" >
						<select size="3">
							<option>朋友介绍的</option>
							<option>家人</option>
						</select>
					</td>
				</tr>
				
				<tr>
					<td>照片上传:</td>
					<td colspan="3">
						<input type="file"/>
					</td>
				</tr>
				
				<tr>
					<td>个人简介:</td>
					<td colspan="3">
						<textarea rows="5" cols="30"></textarea>
					</td>
				</tr>
			
				<tr>
					<td>城市:</td>
					<td colspan="3">
						<select>
							<option>广西</option>
							<option>广东</option>
							<option>江西</option>
							<option>四川</option>
							<option>新疆</option>
						</select>
					</td>
				</tr>

				<tfoot>
					<tr align="center"  >
						<td colspan="10">
							<input type="submit" value="登录" onclick="dianJi()"/>
							<input type="reset" value="取消"/>
							<input type="button" value="查询"/>
						</td>
				</tr>
				</tfoot>
		
			</form>
		</table>
	</body>

</html>

图片
以上代码由于知识问题还有很多bug
----学习中的小芊
加油

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值