<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- 4秒后自动转去相应网址 -->
<!-- <meta http-equiv="refresh" content="4; http://www.baidu.com/" /> -->
<title>test output</title>
<style>
//body{ background: navy; color: yellow;}
</style>
</head>
<body>
<form name="main">
<h3>output元素,在firefox中支持得很好</h3>
<output name="result"></output>
<script>
document.forms.main.elements.result.value = "Hello中国";
</script>
</form>
<hr>
<a href="about:blank">baidu</a>
<script>
var a = document.links[0];
a.href="http://www.baidu.com";
a.protocol = "https"; //a.setAttribute("href","http://www.163.com");
a.setAttribute("target","_blank");
</script>
<hr>
<h3>特殊符号</h3>
10±0.01 <br>
注册商标® <br>
度° <br>
元¥ <br>
引号" Hello World. "
<hr>
<strong>鼠标</strong>移上去显示详细<em>abbr</em>:<abbr title="eXtensible Hyper Text Markup Language">XHTML</abbr>
<hr>
<kbd>Enter</kbd>
<hr>
<pre>
<code>
function message(info){
window.alert(info);
}
</code></pre>
<hr>
<blockquote>
天才是99%的汗水+1%的天分!
</blockquote>
<hr>
<table border=1>
<colgroup span="1" style="width:150px;"></colgroup>
<colgroup>
<col span="2" style="width:100px; background:red">
</colgroup>
<colgroup>
<col span="1" style="width:100px; background:#ccff99">
</colgroup>
<colgroup span="1" style="width:150px;"></colgroup>
<thead>x
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>4</td>
</tr>
<tbody>
<tbody>
<tr>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
<td>4</td>
</tr>
<tr>
<td>9</td>
<td>0</td>
<td>-</td>
<td>=</td>
<td>4</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>4</td>
</tr>
<tfoot>
</table>
<hr>
<form action="" name="frmTest">
tel: <input type="tel"> <br>
datetime: <input type="datetime"> <br>
range: <input type="range" min="0" max="10" value="5"> <br>
color: <input type="color" name="colorSel"> <input type="button" onclick="alert(frmTest.colorSel.value)"> <br> optgroup示例:
<select name="selOptGrp" id="">
<optgroup label="娱乐">
<option value="film">电影</option>
<option value="film">音乐</option>
</optgroup>
<optgroup label="运动">
<option value="football">足球</option>
<option value="basketball">蓝球</option>
</optgroup>
</select>
<br>
<datalist id="mylist">
<option value="film">电影</option>
<option value="film">音乐</option>
<option value="football">足球</option>
<option value="basketball">蓝球</option>
</datalist>
提示: <input type="text" name="mysport" list="mylist"> <br>
progress: <progress max="100" value="20"></progress>
</form> <h3>menu test fail:</h3>
<div style="border:1px solid red; width:400px; height:300px; word-wrap:break-word; word-break:break-all;" draggable="true" contextmenu="mymenu">
Hello World, This is great!
Hello World, This is great!Hello World, This is great!Hello World, This is great!
</div>
<menu id="mymenu" type="toolbar" label="someth">
<li>a</li>
<li>b</li>
<li>c</li>
<li>d</li>
</menu>
</body>
</html>

html5学习测试的更多相关文章

  1. HTML5 学习总结(一)——HTML5概要与新增标签

    一.HTML5概要 1.1.为什么需要HTML5 HTML4陈旧不能满足日益发展的互联网需要,特别是移动互联网.为了增强浏览器功能Flash被广泛使用,但安全与稳定堪忧,不适合在移动端使用(耗电.触摸 ...

  2. HTML5 学习笔记(一)——HTML5概要与新增标签

    目录 一.HTML5概要 1.1.为什么需要HTML5 1.2.什么是HTML5 1.3.HTML5现状及浏览器支持 1.4.HTML5特性 1.5.HTML5优点与缺点 1.5.1.优点 1.5.2 ...

  3. HTML5 学习笔记--------》HTML5概要与新增标签!

      一.HTML5概要 1.1.为什么需要HTML5 HTML4陈旧不能满足日益发展的互联网需要,特别是移动互联网.为了增强浏览器功能Flash被广泛使用,但安全与稳定堪忧,不适合在移动端使用(耗电. ...

  4. HTML5学习参考资料整理

    给大家推荐一下学习研究HTML5必备的一些个网站,更加有利于大家对HTML5的学些和研究.如果各位童鞋还有更多的,欢迎投递资源给我们,也可以支持 我们,让我们利用大家的力量收集更多的HTML5学习资料 ...

  5. [html5] 学习笔记-表单新增的元素与属性(续)

    本节主要讲解表单新增元素的controls属性.placeholder属性.List属性.Autocomplete属性.Pattern属性.SelectionDirection属性.Indetermi ...

  6. Html5学习导航

    给大家推荐一下学习研究HTML5必备的一些个网站,更加有利于大家对HTML5的学些和研究.如果各位童鞋还有更多的,欢迎投递资源给我们,也可以支持我们,让我们利用大家的力量收集更多的HTML5学习资料, ...

  7. HTML5学习第四天

    HTML5学习第四天 一.HTML列表 HTML列表,有无序表,有序表以及自定义表,列表于列表之间可以实现嵌套 列表相关操作 <ul> <li>(多选)谁世界第二可爱?< ...

  8. HTML5学习总结——canvas绘制象棋(canvas绘图)

    一.HTML5学习总结——canvas绘制象棋 1.第一次:canvas绘制象棋(笨方法)示例代码: <!DOCTYPE html> <html> <head> & ...

  9. html5学习笔记一

    HTML5学习笔记 <video>标记:定义视频,Ogg.MPEG4.WebM三种格式 <video src=”movie.ogg”  controls=”controls”> ...

随机推荐

  1. 简单几何(向量旋转+凸包+多边形面积) UVA 10652 Board Wrapping

    题目传送门 题意:告诉若干个矩形的信息,问他们在凸多边形中所占的面积比例 分析:训练指南P272,矩形面积长*宽,只要计算出所有的点,用凸包后再求多边形面积.已知矩形的中心,向量在原点参考点再旋转,角 ...

  2. 模拟 POJ 1068 Parencodings

    题目地址:http://poj.org/problem?id=1068 /* 题意:给出每个右括号前的左括号总数(P序列),输出每对括号里的(包括自身)右括号总数(W序列) 模拟题:无算法,s数组把左 ...

  3. Travel Problem[SZU_K28]

    DescriptionAfter SzuHope take part in the 36th ACMICPC Asia Chendu Reginal Contest. Then go to QingC ...

  4. unity 播放过场动画

    public var url="file:///c:/sample.ogg"; //文件路径 function Start () { //拼凑一个url url="fil ...

  5. 什么是J2EE,包括哪些规范!

    J2EE平台由一整套服务(Services).应用程序接口(APIs)和协议构成,它对开发基于Web的多层应用提供了功能支持,下面对J2EE中的13种技术规范进行简单的描述(限于篇幅,这里只能进行简单 ...

  6. ejabberd 的框架

    最近看源码,总结ejabberd的大致框架如下

  7. Oracle--10(ROW_NUMBER() OVER)

    一.定义 语法:ROW_NUMBER() OVER(PARTITION BY COLUMN ORDER BY COLUMN) 简单的说row_number()从1开始,为每一条分组记录返回一个数字,这 ...

  8. ARC指南3 - @property

      本章介绍引入ARC后@property的使用,跟ARC之前的还是很不一样的 一..h和.m文件的变化说明 1.对于.h头文件,主要是将属性定义由retain变为strong @property ( ...

  9. iOS真机调试的验证项

    基本的匹配项 App 描述文件 BundleID (匹配) ApplicationID Cert (匹配) Cert DeviceID (被包含) DeviceIDs 描述文件就是包含了各种需要验证信 ...

  10. The Stable Marriage Problem

    经典稳定婚姻问题 “稳定婚姻问题(The Stable Marriage Problem)”大致说的就是100个GG和100个MM按照自己的喜欢程度给所有异性打分排序.每个帅哥都凭自己好恶给每个MM打 ...