html5 表单

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
</head>
<body>
<form action="https://www.baidu.com/" method="get">用户名:
<!-- get有利于资源定位 也可以用post 安全性好-->
<input type="text" name="name">
<br/>
密码:
<input type="password" name="password">
<br/>
你喜欢的水果
苹果<input type="checkbox">
西红柿<input type="checkbox">
香蕉<input type="checkbox">
<br/>
请选择性别
男<input type="radio" name="nv">
女<input type="radio" name="nv">

<br/>
请选择字母
<select>
<option>z</option>
<option>e</option>
<option>f</option>
<option>n</option>
</select>
<br/>
<textarea cols="30px" rows="30">
请在此添加信息

</textarea>
<input type="button" value="按钮">
<input type="submit" value="提交">

</form>


</body>
</html>

posted @ 2015-05-10 17:26  谢小锋  阅读(119)  评论(0)    收藏  举报