首页 > Web开发 > 详细

HTML表单操作的记录

时间:2015-05-13 21:35:44      阅读:303      评论:0      收藏:0      [点我收藏+]
<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
      <form action = "b.html" method = "post">
		   姓名:<input type = "text" name = "" size = "50" maxlength = "5" readonly disabled value = "请输入姓名"><br>
		   密码:<input type = "password" name = "pass" ><br>
		   隐藏框:<input type = "hidden" name = "age" value = 20><br>
		   性别:<input type = "radio" name = "sex" checked value = "male" >男<input type = "radio" name = "sex" value = "female">女<br>
		   国籍:<input type = "radio" name = "country" value = "中国">中国<input type = "radio" name = "country" checked value  = "美国">美国
<input type = "radio" name = "country">日本<br> 爱好:<input type = "checkbox" name = "love" checked value = "足球"> 足球 <input type = "checkbox" name = "love">排球 <input type = "checkbox" name = "love">篮球<br> 学历:<select multiple name = "xueli"> <option value = "daxue">大学</option> <option value = "zhongxue">中学</option> <option value = "xiaoxue" selected>小学</option> </select><br> 备注: <textarea cols = "20" rows = "5" name = "beizhu">大虾留下你的脚印吧</textarea> 普通按钮:<input type = "button" value = "普通按钮" onclick = "alert(‘哈哈,我来了‘)"> 提交按钮:<input type = "submit" value = "提交按钮" > 重置按钮:<input type = "reset" value = "重值按钮"> 图片按钮:<input type = "image" src = "image/1.jpg" width = "30" height = "30"> </form> </body> </html>

 

HTML表单操作的记录

原文:http://www.cnblogs.com/ouysq/p/4501524.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!