<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>表单元素</title>
</head>
<body>
<!-- 表单对象放到form里面才能与服务器交互 -->
<form action="传送的网址/处理程序">
昵称: <input type="text" value="admin"> <br> 密码:
<input type="password" value="admin"> <br> 邮箱:
<input type="text" value="admin">
<select>
<option value="" selected="selected">qq.com</option>
<option value="">163.com</option>
</select><br> 性别:
<input type="radio" name="sex">男<input type="radio" name="sex" checked="checked">女 <br> 兴趣:
<input type="checkbox" name="interest" id="" checked="checked">旅游
<input type="checkbox" name="interest" id="">摄影
<input type="checkbox" name="interest" id="">运动 <br> 个人介绍:
<br>
<textarea name="" id="" cols="30" rows="10">no pains,no gain</textarea><br>
<input type="button" value="注册"> <br> 上传个人照片:
<br>
<input type="file">
</form>
</body>
</html>