表单的基本使用
来源:互联网 发布:java 类构造器 编辑:程序博客网 时间:2024/06/09 19:10
login.html
<html><head><title>登陆网页</title></head><!--action的值应当是提交哪个页面(url)--><!--method方法指定提交数据的方法,常用的有两种get/post--><form action = "ok.html" method = "get">用户名:<input type = "text" name = "username"/><br/>密 码:<input type = "password" name = "password"/><br/><input type = "submit" name = "登陆系统"/><input type = "reset" value = "重新填写"/></form></html>
ok.html
OK,登陆页面成功!
单选框,多选框,文本域,文件上传控件
<html><head><title>表单元素</title></head><form action = "ok.html" method = "get">你最喜欢哪个城市:<input type = "checkbox" name = "cities" value = "beijing">北京<input type = "checkbox" name = "cities" value = "shanghai">上海<input type = "checkbox" name = "cities" value = "London"/>伦敦<br/>您的性别:<input type = "radio" name = "sex" value = "man">男<input type = "radio" name = "sex" value = "woman">女<br/>隐藏域的使用<input type = "hidden" name = "data" value = "OK"/>下拉列表<br/>请选择您的出生地:<select name = "address" size = "3" multiple><option value = "sichuan">四川</option><option value = "beijing">北京</option><option value = "xizang">西藏</option></select><br/><!--文本域--><textarea cols = "40" rows = "10"></textarea><br/><!--文件上传的控件--><input type = "file" name = "myfile">上传文件<br/><input type = "submit" name = "测试" value = "test"/><br/><!--这是一个图片按钮--><input type = "image" src = "image.png"/></form></html>
<html><body><fieldset style = "width:300px"><legend><font>★ 审核状态</font></legend><form><input type = "radio" name = "state"/>已经审核<input type = "radio" name = "state"/>没有审核<input type = "radio" name = "state"/>全部</form></fieldset></body><html>
- 表单的基本使用
- Validform的基本使用-表单校验
- html表单 基本标签的使用
- 表单的基本验证
- 表单的基本语法
- 表单的基本标签
- JQuery对表单元素的基本操作使用总结
- 表单的一些基本元素
- form表单的基本用法
- 表格和表单、表单的基本结构、表单元素、表单的高级应用、表单语义化
- BootStray表单控件 基本控件的使用 提示,图标的交互
- 基本表单
- 基本表单
- Bootstrap3 表单-基本表单
- 智能表单的使用
- 智能表单的使用
- 使用表单的注意事项
- Angularjs表单的使用
- 扩展一个jquery mappingJSON 映射方法
- sql server触发器
- 中国软件离岸外包的课题和期待(读书笔记)
- 内核编译(三)
- 解决document.form.submit()对象不支持此属性或方法
- 表单的基本使用
- Java实现二维码(QRCode)的编码和解码
- android自动化测试之robotium初探
- PHP团队开发和基于xdebug进行多人远程调试 for eclipse phpstorm
- linux mysql怎么安装
- 使用Dojo的FilteringSelect打造具有拼音检索功能的下拉菜单(上)
- Android应用程序窗口(Activity)与WindowManagerService服务的连接过程分析
- java三目运算符问题
- 复习一下冒泡排序,做水题,好像我就只会冒泡了