作业1:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>作业1</title>
</head>
<body>
<table border="1px" width=280px" height="100px">
<tr >
<th colspan="2" >用户注册</th>
<!-- <th></th> -->
</tr>
<tr>
<th align="right">用户名</th>
<th align="left"><input type="text" name="Username" maxlength="20"></th>
</tr>
<tr>
<th align="right">密码</th>
<th align="left"><input type="password" name="UserPass" maxlength="20"></th>
</tr>
<tr>
<th align="right">性别</th>
<th align="left"><input type="radio" name="sex" value="1" autofocus>男
<input type="radio" name="sex" value="0">女</th>
</tr>
<tr>
<th align="right">爱好</th>
<th align="left"><input type="checkbox" name="like" value="写作">写作
<input type="checkbox" name="like" value="听音乐">听音乐
<input type="checkbox" name="like" value="体育">体育
</th>
</tr>
<tr>
<th align="right">省份</th>
<th align="left">
<select name="province" id="" autofocus>
<option value="shanxi" >陕西</option>
<option value="sichuan">四川</option>
<option value="beijing">北京</option>
<option value="chongqing">重庆</option>
</select>
</th>
</tr>
<tr>
<th align="right">自我介绍</th>
<th align="left"><textarea name="intro" id="" cols="25" rows="5" placeholder="这个家伙什么也没留下"></textarea></th>
</tr>
<tr>
<th colspan="2">
<button type="submit" name="send">提交</button>
<button type="reset" name="reset">重置</button>
</th>
<!-- <th></th> -->
</tr>
</table>
</body>
</html>
运行结果: