On Github juhyxx / html5-presetation
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html>
<script type='text/javascript'>
<script>
<input type="text" disabled>Unquoted
<input type="text" value=John>Double-quoted
<input type="text" value="John Doe">Single-quoted
<input type="text" value='John Doe'>
element.innerHTML = '
Summary ContentSummary Content
60%60%
2 out of 102 out of 10
localStorage+ getItem( String key) + setItem( String key, String value) + removeItem( String key) + clear()
localStorage[key] = value;
CACHE MANIFEST # 2012-02-21 v1.0.0 /theme.css /logo.gif /main.js NETWORK: login.asp FALLBACK: /html/ /offline.html
<html manifest="demo.appcache">
worker = new Worker("worker.js"); worker.js: postMessage(eq()); function eq() { var date = new Date(), arr = []; for (var i = 0; i < 100000; i++) { for (var j = 0; j < 100000; j++) {} } return (new Date()) - date; }
navigator.geolocation+ getCurrentPosition( Function handler) + watchPosition( Function handler) + clearWatch()
var source = new EventSource("demo_sse.php"); source.onmessage = function(event) { document.getElementById("result").innerHTML += event.data + ""; };
a img:parent { background: none; }
background: url(monk.png) no-repeat 20px 20px, -webkit-linear-gradient(white,transparent 50%) gray;
border-image: url(border.png) 20 20 round; border-image: url(border.png) 20 20 stretch;
transform: translate(60px,60px); transform: rotate(30deg); transform: scale(0.5,0.5); transform: skew(30deg, 10deg); transform: matrix(rotate, scale, move, skew);
.rotate { -webkit-animation: spin3d 20s linear infinite; } @-webkit-keyframes spin3d { 100% { -webkit-transform: rotateY(360deg); } }
@-webkit-keyframes hlt { 0% { background-color: orange; } 10% { background-color: orange; } 11% { background-color: lightgray; } 100% { background-color: lightgray; } }
<script> document.createElement('header'); document.createElement('section'); document.createElement('article'); document.createElement('aside'); document.createElement('nav'); document.createElement('footer'); </script>