html5-表单和input元素用法
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表单</title>
</head>
<body>
<form action="http://localhost" method="get" target="_blank">
<input type="hidden" value="统计" name="tj"><br>
用名:<input type="text" name="key" name="user" value="新镇中心" maxlength="20" autofocus="" tabindex="1"><br>
密码:<input type="password" name="ps" name="password"><br>
国家:<input type="text" readonly="readonly" value="中国" name="gj" accesskey="k"><br>
地址:<input type="text" disabled="disabled" value="wenan" name="address" ><br>
邮箱:<input type="email" name="email" required="required"><br>
网址:<input type="url" name="url" tabindex="2" autocomplete="off"><br>
电话:<input type="tel" tabindex="3"><br>
数字:<input type="number" min="0" max="50" step="10" value="10" name="shuzi"><br>
范围:<input type="range" min="0" max="100" step="5" value="20" name="fanwei"><br>
时间:<input type="time"><br>
日:<input type="date"><br>
周:<input type="week"><br>
月:<input type="month"><br>
本地时间:<input type="datetime-local"><br>
UTC时间:<input type="datetime"><br>
颜色:<input type="color"><br>
搜索:<input type="search" placeholder="输入关键词"><br>
文件:<input type="file" accept="image/png" multiple="multiple"><br>
复选框:<input type="checkbox" name="dx" value="a">平面设计
<input type="checkbox" name="dx" value="b">绘画绘图
<input type="checkbox" name="dx" value="c" checked="checked">会计专业
<input type="checkbox" name="dx" value="d">立体设计
<br>
<hr>单选框
<input type="radio" name="rad" value="a">先生
<input type="radio" name="rad" value="b">女士
<input type="radio" name="rad" value="c">保密
<br>
<input type="submit">
<input type="reset">
<!-- <input type="button" value="按钮">
<input type="image" src="imges/ss.png"> -->
</form>
<!-- <div>
<input type="text">
<input type="submit">
表单之外的元素也可以使用
</div> -->
<!-- <figure>
<img src="pic/1.png" alt="图片">
</figure>
<figcaption>
图片内容
</figcaption> -->
</body>
</html>
html5-表单和input元素用法的更多相关文章
- HTML表单之input元素的23种type类型
摘自:http://www.cnblogs.com/xiaohuochai/p/5179909.html 了解HTML表单之input元素的23种type类型 随着HTML5的出现,input元素新增 ...
- 了解HTML表单之input元素的23种type类型
目录 传统类型 text password file radio checkbox hidden button image reset submit 新增类型 color tel email url ...
- 了解HTML表单之input元素的30个元素属性
目录 传统属性 name type accept alt checked disabled readonly maxlength size src value 新增属性 autocomplete au ...
- html5表单新增的元素与属性
1.表单内元素的form属性 在html4中,表单内的从属元素必须书写在表单内部, 而在html5中,可以把他们书写在页面上任何地方, 然后为该元素指定一个form属性,属性值为该表单的id,这样就可 ...
- HTML5表单之Input 类型- Date Pickers(日期选择器)
HTML5 拥有多个可供选取日期和时间的新输入类型: date-选取日.月.年 month-选取月.年 week-选取周和年 time-选取时间(小时和分钟) datetime-选取时间.日.月.年( ...
- html form表单追加input元素后在提交
form.append(input); //input为对象 (设置name和val有效) $("#form1").submit();//提交事件
- 服务器变量 超级全局数组$_SERVER (附加超简单表单与html5表单属性)
001.html <html> <head><title>user log</title> <meta http-equiv="cont ...
- HTML5 表单元素和属性
HTML5 表单元素和属性学习 版权声明:未经博主授权,内容严禁转载 ! 表单元素简介 无论实现提交功能还是展示页面功能,表单在HTML中的作用都十分重要. 在其他版本的HTML中,表单能够包含的元素 ...
- [html5] 学习笔记-表单新增的元素与属性(续)
本节主要讲解表单新增元素的controls属性.placeholder属性.List属性.Autocomplete属性.Pattern属性.SelectionDirection属性.Indetermi ...
随机推荐
- Qt5线程错误:QThread: Destroyed while thread is still running(执行runThread->exit(0))
背景: 当前类,编写接收子线程类信号的槽函数和触发子线程类执行的信号: 新建一个子线程类,编写槽函数和信号,MyClass *m_MyClass=new MyClass(): 新建一个线程对象QThr ...
- 【PyQt5-Qt Designer】PyQt5+eric6 安装和配置
PyQt5+eric6 安装及配置 1.利用pip命令安装PyQt5 第一步:安装PyQt5 在cmd命令行中输入: pip install PyQt5 第二步:安装Qt的工具包 pip instal ...
- Python文件操作---正斜杠与反斜杠
Python中的正斜杠与反斜杠 首先,"/"左倾斜是正斜杠,"\"右倾斜是反斜杠,可以记为:除号是正斜杠一般来说对于目录分隔符,Unix和Web用正斜杠/,Wi ...
- Es6 的类(class)
首先根据es5的类(原型对象)的基本点做参照. 序号 基本点 es5 >es6 1 实例属性(方法) √ √ 2 原型属性(方法) 或 公共属性(方法) √ √ 3 es5的私有变量 或 私有属 ...
- MySQL 5.5加主键锁读问题【转载】
背景 有同学讨论到MySQL 5.5下给大表加主键时会锁住读的问题,怀疑与fast index creation有关,这里简单说明下. 对照现象 为了说明这个问题的原因,有 ...
- SSH服务知识
1.ssh介绍 SSH 是 Secure Shell Protocol 的简写,由 IETF 网络工作小组(Network Working Group )制定:在进行数据传输之前,SSH先对联机数据包 ...
- model browser 不出现时
1:当 创建 component 时, 创建完成后,没有出现model browser, 这时需要在model上面添加一个model,然后保存退出,重新进入,就会出现model browser
- 122A
Copy #include <stdio.h> int main() { int dig; int flag=0; scanf("%d", &dig); if( ...
- lua加载函数require和dofile
lua加载函数require和dofile Lua提供高级的require函数来加载运行库.粗略的说require和dofile完成同样的功能但有两点不同: 1. require会搜索目录加载文件; ...
- 10.25 AITalkUat部署
准备: git clone AITalkUat工程,在本地跑: 可以直接浏览器访问127.0.0.1:5000() 如果带上参数,可以得到访问的结果127.0.0.1:5000/autoservice ...