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 ...
随机推荐
- Matplotlib 简单的使用
Matplotlib是一个Python 2D绘图库, 只需几行代码即可生成绘图,直方图,功率谱,条形图,错误图,散点图等. 有关示例,请参阅示例图和缩 import matplotlib.pyplot ...
- unity插件,从一段文字中提取中文并去重
using System.Collections.Generic; using System.Text.RegularExpressions; using UnityEditor; using Uni ...
- vim 私人快捷键备忘录
i 上 k 下 j 左 l 右 ( 上移一段 ) 下移一段 * 搜索关键字 d 删除 y 复制 p 粘贴 h 插入 H 头插 o 下开一行 O 上开一行 f 后跳指定关键字 F 前跳指定关键字 e 字 ...
- oracle按照指定列分组合计group by rollup()
group by rollup() 按分组合计 select grouping(status),status,owner,object_type,count(*) from dba_objects w ...
- oracle查看哪些表被锁
select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where a ...
- 使用监听器解决路径问题,例如在jsp页面引入js,css的web应用路径
使用监听器解决路径问题,例如在jsp页面引入js,css的web应用路径 经常地,我们要在jsp等页面引入像js,css这样的文件,但是在服务器来访问的时候,这时间就有关到相对路径与绝对路径了.像网页 ...
- 前端 HTML 常用标签 head标签相关内容 title标签 网页的标题信息
title标签 <title>标签:在<title>和</title>标签之间的文字内容是网页的标题信息,它会显示在浏览器标签页的标题栏中. 可以把它看成是一个网页 ...
- what's the 场外交易
出自 MBA智库百科(https://wiki.mbalib.com/) 什么是场外交易 场外交易是指证券投资机构之间不通过股票交易所,而以电话.电传等方式相互进行的股票交易. ...
- MSSQL查询收缩和备份进度
--查询当前数据库备份进度 SELECT DB_NAME(er.[database_id]) [DatabaseName],er.[command] AS [CommandType],er.[pe ...
- 小程序js执行顺序
底部tab 有 login/index my/index home/index 操作1>进 login/index 页面, index.js加载以下方法 onLoad页面加载onSh ...