HTML表单操作的记录

<!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>

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。