Html 表单表格 form table

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>注册表单</title>
</head>

<body>
<fieldset>
	<legend> 注册区域 </legend>
	<form action="http://www.baidu.com" method="post">
		<table width="50%" border="1" bordercolor="#330066" cellspacing="0" cellpadding="5">
			<tr>
				<th colspan="2">注册页面信息</th>				
			</tr>
			<tr>
				<td>用户名:</td>
				<td><input type="text" name="user"/></td>
			</tr>
			<tr>
				<td>密码:</td>
				<td><input type="password" name="passwd"/></td>
			</tr>
			<tr>
				<td>确认密码:</td>
				<td><input type="password" name="repasswd" /></td>
			</tr>
			<tr>
				<td>性别:</td>
				<td><input type="radio" name="sex" value="nan" />男
				<input type="radio" name="sex" value="nv"/>女</td>
			</tr>
			<tr>
				<td>技术:</td>
				<td><input type="checkbox" name="tech" value="java"/>Java
				<input type="checkbox" name="tech" value="html" />Html
				<input type="checkbox" name="tech" value="xml"/>Xml</td>
			</tr>
			<tr>
				<td>国家:</td>
				<td>
					<select name="country">
						<option value="none">--选择国家--</option>
						<option value="china">中国</option>
						<option value="usa">美国</option>
					</select>
				</td>
			</tr>

			<tr>
				<th colspan="2"><input type="submit" /><input type="reset" /></th>				
			</tr>
		</table>
	</form>
</fieldset>	
</body>
</html>

posted @ 2013-11-17 11:38  今晚打酱油_  阅读(452)  评论(0编辑  收藏  举报