前段小项目----表单的建立

	<form action="https://www.baidu.com/" method="get">
	<table cellpadding="10" cellspacing="10" align="center" >
		<tr><td></td><td id="first">爱玩不玩网络:新用户注册</td></tr>
		<tr>
			<td>
			<label for="one" class="second">用户名:</label> 
			</td>
			<td> <input type="text" id="one"></td>
			 <td>
			 上传头像:<img src="dog.png" >
			<input type="file" value="上传头像">
			</td>
		</tr>
		<tr>
			<td> <label for="two">登录密码:</label> </td>
			<td> <input type="password" maxlength="16" id="two"></td>
		</tr>
		<tr>
			<td> <label for="three">再次输入密码:</label></td>
			<td> <input type="password" maxlength="16" id="three"></td>
		</tr>
		<tr>
			<td><label for="four" >真实姓名:</label></td>
			<td> <input type="text" id="four" maxlength="4"></td>
		</tr>
		<tr>
			<td><label for="five">身份证号:</label></td>
			<td> <input type="text" id="five"></td>
		</tr>
		<tr>
			<td>性别:</td>
				<td>
					<label for="boy"> <img src="boy.png"> </label> <input type="radio" name="sex" id="boy" checked="checked"><label for="girl"><img src="girl.png"></label> <input type="radio" name="sex" id="girl"></td>
		</tr>
		<tr>
			<td>爱好:</td>
				<td>
					<input type="checkbox" name="hobby">玩LOL
					<input type="checkbox" name="hobby">玩DNF
					<input type="checkbox" name="hobby">打CF
					<input type="checkbox" name="hobby" checked="checked">以上都玩
				</td>
		</tr>
		<tr>
			<td>喜欢游戏类型:</td>
			<td>
			<select>
					<option>动作</option>
					<option>冒险</option>
					<option>求生</option>
					<option>角色扮演</option>
					<option selected="selected">都喜欢</option>
			</select>
			</td>
		</tr>
		
		<tr>
			<td>个性签名:</td>
			<td>
				<textarea cols="20" rows="5">拒绝野味,从我做起!</textarea>
			</td>
		</tr>
		<tr>
			<td></td>
			<td>
				<input class="submit"	type="submit" value="免费注册">
				<input class="submit" type="reset"  value="重新输入">
			</td>		
		</tr>
	</table>
	</form>
发布了72 篇原创文章 · 获赞 2 · 访问量 1671

猜你喜欢

转载自blog.csdn.net/weixin_45821690/article/details/105105562
今日推荐