下面代码描述了一个具体的表单属性:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>第台一个HTML页面</title>
</head>
<body>
<p><b>会员注册页面</b></p>
<form name="myform" method="post" action="">
<table width="413" height="269" border="1">
<tr>
<td width="123">用户名:</td>
<td width="280">
<input name="txtName" type="text" id="txtName" size="20">
</td>
</tr>
<tr>
<td>密码:</td>
<td>
<input name="txtPwd1" type="Password" id="txtPwd1" size="20">
</td>
</tr>
<tr>
<td>确认面码:</td>
<td>
<td>出生年月日:</td>
<td>
<select name="year" id="year">
<option>1986</option>
</select>年
<select name="month" id="month">
<option>1</option>
</select>
<select name="day" id="day">
<option>1</option>
</select>日
</td>
</tr>
<tr>
<td height="27">性别:</td>
<td>
<input name="sex" type="radio" value="男D" checked>男D
<input type="radio" name="sex" value="女?">女?
</td>
</tr>
<tr>
<td>爱好:</td>
<td>
<input type="checkbox" name="hobby" value="游泳">游泳
<input type="checkbox" name="hobby" value="看书”>看书
<input type="checkbox" name="hobby" value="旅游">旅游
<input type="checkbox" name="hobby" value="其他">其他
</td>
</tr>
<tr>
<td>地址·:</td>
<td>
<textarea name="txtAddress" cols="20" rows="10" id="txtAddress">
</textarea>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="Submit" valut="提交">
<input name="Reset" type="reset" id="Reset" value="取消">
</td>
</tr>
</table>
</form>
</body>
<html>
实现的界面我就不弄上去喽!!! |