html5学习测试
<!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学习测试的更多相关文章
- HTML5 学习总结(一)——HTML5概要与新增标签
一.HTML5概要 1.1.为什么需要HTML5 HTML4陈旧不能满足日益发展的互联网需要,特别是移动互联网.为了增强浏览器功能Flash被广泛使用,但安全与稳定堪忧,不适合在移动端使用(耗电.触摸 ...
- HTML5 学习笔记(一)——HTML5概要与新增标签
目录 一.HTML5概要 1.1.为什么需要HTML5 1.2.什么是HTML5 1.3.HTML5现状及浏览器支持 1.4.HTML5特性 1.5.HTML5优点与缺点 1.5.1.优点 1.5.2 ...
- HTML5 学习笔记--------》HTML5概要与新增标签!
一.HTML5概要 1.1.为什么需要HTML5 HTML4陈旧不能满足日益发展的互联网需要,特别是移动互联网.为了增强浏览器功能Flash被广泛使用,但安全与稳定堪忧,不适合在移动端使用(耗电. ...
- HTML5学习参考资料整理
给大家推荐一下学习研究HTML5必备的一些个网站,更加有利于大家对HTML5的学些和研究.如果各位童鞋还有更多的,欢迎投递资源给我们,也可以支持 我们,让我们利用大家的力量收集更多的HTML5学习资料 ...
- [html5] 学习笔记-表单新增的元素与属性(续)
本节主要讲解表单新增元素的controls属性.placeholder属性.List属性.Autocomplete属性.Pattern属性.SelectionDirection属性.Indetermi ...
- Html5学习导航
给大家推荐一下学习研究HTML5必备的一些个网站,更加有利于大家对HTML5的学些和研究.如果各位童鞋还有更多的,欢迎投递资源给我们,也可以支持我们,让我们利用大家的力量收集更多的HTML5学习资料, ...
- HTML5学习第四天
HTML5学习第四天 一.HTML列表 HTML列表,有无序表,有序表以及自定义表,列表于列表之间可以实现嵌套 列表相关操作 <ul> <li>(多选)谁世界第二可爱?< ...
- HTML5学习总结——canvas绘制象棋(canvas绘图)
一.HTML5学习总结——canvas绘制象棋 1.第一次:canvas绘制象棋(笨方法)示例代码: <!DOCTYPE html> <html> <head> & ...
- html5学习笔记一
HTML5学习笔记 <video>标记:定义视频,Ogg.MPEG4.WebM三种格式 <video src=”movie.ogg” controls=”controls”> ...
随机推荐
- 转:.NET获取当前方法名或调用此方法的方法名
Introduction Before .NET, we were always looking for a way to log current method name in a log file ...
- Sql不区分大小写查询
select a.* from Pair_User a where 1=1 and UPPER(a.UserID) like 'EMH1001%' collate Chinese_PRC_C ...
- 神、上帝以及老天爷[HDU2048]
神.上帝以及老天爷 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total S ...
- Color a Tree[HDU1055]
Color a Tree Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Tota ...
- Get the log from android device
Theme: How to get the log from device ? Detail: Get the log from device, and write to the local fi ...
- 使用RBTool自动提交code review请求
使用RBTool自动提交code review请求 前言 让我们回想一下手工提交review请求的过程: 首先得用 svn diff > filename.diff 生成diff文件. 然后输入 ...
- FlyCapture2 VS2010 Configuration
Add in the system Path: C:\Program Files (x86)\Point Grey Research\FlyCapture2\bin Project->Proje ...
- python中的循环
>>> x = 100 >>> y = 10>>> x < y and x or y10>>> x if x > y ...
- kvm安装
基础环境: 192.168.1.67 super67 硬件cpu需要支持:Intel VT-x 技术 本实验使用虚拟机VMware Workstation上的虚拟机 ...
- php文件以二进制形式上传并放入到数据库中
conn.php: <?php $id=mysql_connect('localhost','root','root'); mysql_select_db("db_database12 ...