<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<thead>
<table border="2" style="border:1px solid white" height=400 width="400" cellpadding="10" cellspacing="1" bgcolor="#cccccc">
<tr>
<td width=80 colspan=2 align="center"><b>用户注册</b></td>
</tr>
</thead>
<tbody height="30" bgcolor="#ececec">
<tr>
<td width=80 align="right">用户名</td>
<td><input type="text" name="username" placeholder="请输入你的用户名"></td>
</tr>
<tr>
<td width=50 align="right">密码</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td width=50 align="right">性别</td>
<td><input type="radio" name="sex" value="男">男
<input type="radio" name="sex" value="女">女
</td>
</tr>
<tr>
<td width=50 align="right">爱好</td>
<td>
<input type="checkbox" name="fav" value="writing">写作
<input type="checkbox" name="fav" value="listen to music">听音乐
<input type="checkbox" name="fav" value="sports">体育
</tr>
<tr>
<td width=50 align="right">省份</td>
<td>
<form action="#" method="get" enctype="text/plain">
<select name="city" id="city">
<option>陕西省</option>
<option>甘肃省</option>
<option>陕西省</option>
</select>
<button>提交</button>
</form>
</td>
</tr>
<tr>
<td width=50 align="right">自我介绍</td>
<td>
<textarea name="comment" form action="#" method="get" enctype="text/plain" >
</textarea>
</tr>
</tbody>
<tfoot bgcolor="#cccccc">
<tr>
<td colspan=2 align=center><input type="submit"><input type="reset" value="重置" /></td>
</tr>
</tfoot>
</table>
</body>
</html>
表单练习,加油!!!
于 2023-06-02 20:17:26 首次发布