<form action="">
<div>
用户名:<input type="text" name="user" value="张三" />
<br/>
邮箱: <input type="text" name="email" value="zhangsan@163.com" />
<br/>
密码: <input type="password" name="pwd" />
<br/>
性别:男:<input type="radio" name="sex" value="1" />
女:<input type="radio" name="sex" value="2" />
<br/>
爱好:
篮球:<input type="checkbox" name="aihao" value="1" />
足球:<input type="checkbox" name="aihao" value="2" />
台球:<input type="checkbox" name="aihao" value="3" />
<br/>
<input type="button" name="an" value="注册" />
<input type="submit" name="niu" value="登录" />
</div>
</form>
<form enctype="multipart/form-data">
<div>
文件上传:<input type="file"/>
<input type="submit" value="上传"/>
</div>
</form>
input type="text" 文本表单;
"password" 密码表单;
"radio" 单选框表单,name熟悉需一致
"checkbox" 复选框表单
"button" 普通按钮
"submit" 提交按钮
"file" 文件上传