<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<form ><!--action="http://wwww.sogou.com" target="_blank"-->
用户名<input type="text" autocomplete="off" name="name" placeholder="请输入用户名" maxlength="5"><!--aotufocus自动获得焦点。autocomplete为浏览器记忆功能,默认为on-->
密码<input type="password" tabindex="1" name="password" name="默认密码"><!--tabindex为按tab键时获取焦点指定顺序,作用不大。-->
<input type="radio" checked="" name="radio">
<input type="submit" value="确定">
<input type="reset" value="重搞">
<input type="button" value="这是普通按钮">
<input type="image" src="img/花1.jpg" width="50px" height="25px">
<input type="hidden" value="隐藏的内容" name="hidden">
<input type="text" readonly="readonly" value="只读" name="只读">
<input type="text" disabled="disabled" value="中国北京" name="禁用"><br>
邮箱<input type="email" name="邮箱"><!--required="required"或required=""或requried-->
网址<input type="url" name="">
电话<input type="tel" accesskey="c" name=""><!--不会对内容进行验证,但有作用:在手机上光标定位后会自动切换到数字输入键盘-->
<!--accesskey="c"按alt+c会快速定位到此元素-->
数字范围及步长<input type="number" max="9" min="3" step="3" value="6">
<input type="range" min="5" max="20" step="5" value="10" name="range">
time<input type="time" name="time">
week<input type="week" name="week"><br>
month<input type="month" name="month">
date<input type="date" name="date">
datetime<input type="datetime" name="datetime">
datetime-local<input type="datetime-local" name="datetime-local">
color<input type="color" value="#FF0000" name="color">
search<input type="search" placeholder="请输入关键字" name="search"><br>
file<input type="file" accept="image/jpg" multiple name="file"><!--multiple="multiple"或multiple=""或multiple-->
复选框<input type="checkbox" checked name="checkbox"><input type="checkbox" checked="" name="checkbox"><input type="checkbox" checked="checked" name="checkbox">
单选按钮<input type="radio" tabindex="3" name="radio"><input type="radio" tabindex="2" checked="" name="r"><!--radio的name如果不同则不属于一组,不会有单选效果。-->
</form>
</body>
</html>

【HTML5】input元素type属性值的更多相关文章

  1. html5 input的type属性启动数字输入法

    html5 input的type属性启动数字输入法   当文本框只能输入数字是一个很常见的需求,比如电话号码,身份证号,卡号, 数量....等等只允许数字输入,为了更好的用户体验性,直接写出 启动数字 ...

  2. HTML5 input元素新的特性

    在HTML5中,<input>元素增加了许多新的属性.方法及控件.本文章分别对这三方面进行介绍. 目录 1. 属性 2. 方法 3. 新控件 1. 属性 <input>元素在H ...

  3. [Liferay6.2.2]AUI的小坑:input的type属性

    <aui:input name="name" label="姓名" value="<%=student.getName() %>&q ...

  4. js修改input的type属性问题

    js修改input的type属性有些限制.当input元素还未插入文档流之前,是可以修改它的值的,在ie和ff下都没问题.但如果input已经存在于页面,其type属性在ie下就成了只读属性了,不可以 ...

  5. JQ无法修改input的type属性的替代解决方法

    需要实现的效果:一个输入框,当输入框未获得焦点的时候,显示为 “请输入密码”:当输入内容并失去焦点的时候,输入内容显示为”*****”,如果没有输入仍然显示“请输入密码”: 方法一:使用text,隐藏 ...

  6. input的type属性

    input的type属性:http://www.w3school.com.cn/tags/att_input_type.asp 基本语法: <input type="hidden&qu ...

  7. JavaScript如何获得input元素value的值

    在JavaScript中获取input元素value的值: 方法一: <!DOCTYPE html> <html> <head> <meta charset= ...

  8. 移除HTML5 input在type="number"时的上下小箭头

    /*移除HTML5 input在type="number"时的上下小箭头*/ input::-webkit-outer-spin-button, input::-webkit-in ...

  9. tween.js是一款可生成平滑动画效果的js动画库。tween.js允许你以平滑的方式修改元素的属性值。它可以通过设置生成各种类似CSS3的动画效果。

    简要教程 tween.js是一款可生成平滑动画效果的js动画库.相关的动画库插件还有:snabbt.js 强大的jQuery动画库插件和Tweene-超级强大的jQuery动画代理插件. tween. ...

随机推荐

  1. JavaScript中的内存泄漏以及如何处理

    随着现在的编程语言功能越来越成熟.复杂,内存管理也容易被大家忽略.本文将会讨论JavaScript中的内存泄漏以及如何处理,方便大家在使用JavaScript编码时,更好的应对内存泄漏带来的问题. 概 ...

  2. 使用JavaMail发送带附件的邮件

    所需jar包 链接:http://pan.baidu.com/s/1dFo4cDz 密码:akap 工具类: package com.javamail.utils; import java.util. ...

  3. python 按每行读取文件怎么去掉换行符

    python按每行读取文件后,会在每行末尾带上换行符,这样非常不方便后续业务处理逻辑,需要去掉每行的换行符,怎么去掉呢?看下面的案例: >>> a = "hello wor ...

  4. System.UnauthorizedAccessException 错误

    给目录添加 "Authenticated Users" 这个用户的 读写权限

  5. Windows下安装BeautifulSoup

    python版本为2.7 1.去官网下载BeautifulSoup4 Beautiful Soup 4.3.2 2.解压文件 将下载得到的压缩包解压到任意文件夹,路径不含中文 3.打开cmd命令提示符 ...

  6. Vue使用Echarts以及Echarts配置分享

    一.本篇文章将给大家分享如何在vue中使用echart以及echart各项配置,这些配置都是工作中比较常见以及常用到的,所以给大家分享下,希望对大家有用. 二.vue中使用echart. 1.首先下载 ...

  7. GDI+ 应用,Release没有错误,Debug很多。

    问题描述: 在VC6环境中,一个界面工程利用了GDI+的一些库,Release模式下编译.运行无误,但在Debug模式下就会报告错误. xxx.cpp D:\Program Files\Microso ...

  8. Android7.0 PowerManagerService 之亮灭屏(一)

    本篇从按下power按键后,按键事件从InputManagerService 传到PhoneWindowManager.java开始分析power 按键做屏幕亮灭过程的分析,关于power 按键的其他 ...

  9. 【MySQL】20个经典面试题,全部答对月薪10k+

    Part2:经典题目 1.MySQL的复制原理以及流程 基本原理流程,3个线程以及之间的关联: 2.MySQL中myisam与innodb的区别,至少5点 (1).问5点不同: (2).innodb引 ...

  10. php结合redis实现秒杀功能

    <?php 第一种,简单实现 $conn=mysql_connect("localhost","big","123456"); if( ...