<img>
is deadCSS#sample-deco {
border-radius: 20px;
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.6);
background: linear-gradient(to bottom, #9adeff 0%, #60bdee 44%,
#2062dd 100%);
}
CSS#sample-gradient {
background: #9adeff; /* Old browsers */
background: -moz-linear-gradient(top, #9adeff 0%, #60bdee 44%, #2062dd 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9adeff), color-stop(44%,#60bdee), color-stop(100%,#2062dd)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #9adeff 0%, #60bdee 44%, #2062dd 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #9adeff 0%, #60bdee 44%, #2062dd 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #9adeff 0%, #60bdee 44%, #2062dd 100%); /* IE10+ */
background: linear-gradient(to bottom, #9adeff 0%, #60bdee 44%, #2062dd 100%);
}
CSS@font-face {
font-family: forque;
src: url('Forque-webfont.eot');
src: url('Forque-webfont.eot?#iefix') format('embedded-opentype'),
url('Forque-webfont.woff') format('woff'),
url('Forque-webfont.ttf') format('truetype'),
url('Forque-webfont.svg#firsttestRegular') format('svg');
}
#sample-font {
font-family: forque;
}
CSS#sample-anim {
transition: transform 1s;
}
#sample-anim.moved {
transform: translateX(600px) rotateX(60deg);
}
JavaScriptvar animBox = document.getElementById("sample-anim");
animBox.onclick = function () {
animBox.className = animBox.className ? "" : "moved";
};
HTML<div class="row">
<div class="span4">
...
</div>
<div class="span8">
...
</div>
</div>
<div class="row">
<div class="span8 offset2">
...
</div>
</div>
CSS#a { float: left; }
#c { float: right; }
@media only screen
and (max-width: 768px) {
#a { float: none; }
}
@media only screen
and (max-width: 480px) {
#c { float: none; }
}
CSS.span1 {
width: 5.982905982905983%;
}
#hero-image {
max-width: 100%;
}
JavaScriptvar animBox = document.getElementById("sample-anim");
animBox.onclick = function () {
animBox.className = animBox.className ? "" : "moved";
}
JavaScript$("#sample-anim")
.click(function () {
$(this).toggleClass("moved");
});
JavaScript$(".someClass")
.addClass("shown")
.fadeIn()
.click(function () { /* ... */ })
.mouseover(function () { /* ... */ });
CSS#header {
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
}
#footer {
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
}
#footer .somechild {
font-size: 12px;
}
LESS.rounded-corners (@rad: 5px) {
border-radius: @rad;
-webkit-border-radius: @rad;
-moz-border-radius: @rad;
}
#header {
.rounded-corners;
}
#footer {
.rounded-corners(10px);
.somechild {
font-size: 12px;
}
}
Edge Animate
Edge Reflow
Edge Code /
Brackets
Edge Inspect
Edge Web Fonts
Typekit
PhoneGap Build
Non-semantic<div class="nav">
<div class="navBox">
<a href="home.html" onmouseover="...">
<img src="homeButton.png">
</a>
</div>
<div class="navBox">
<a href="products.html" onmouseover="...">
<img src="productsButton.png"></a>
</div>
<!-- ... -->
</div>
Semantic<nav>
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="products.html">Products</a></li>
<!-- ... -->
</ul>
</nav>
HTML<nav>
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="products.html">Products</a></li>
<!-- ... -->
</ul>
</nav>
CSSnav li {
display: inline-block;
list-style-type: none;
}
nav li a {
background: linear-gradient(top, #d0e4f7 0%, #73b1e7 80%, ...
}
JavaScript$("nav a").mouseover(function () {
// ...
});
HTML<canvas id="canvas" width="150" height="150"></canvas>
JavaScriptvar canvas = document.getElementById('canvas');
var ctx = canvas.getContext("2d");
ctx.fillStyle = "rgb(200,0,0)";
ctx.fillRect(10, 10, 55, 50);
HTML<object data="myImage.svg" type="image/svg+xml"></object>
CSS#myBox {
background: url(myImage.svg);
}
HTML<img src="myImage.svg">
HTML<body>
<h1>SVG can be inline in HTML5 documents</h1>
<svg height="200" xmlns="http://www.w3.org/2000/svg">
<circle cx="30" cy="30" r="30" fill="green" />
</svg>
</body>
JavaScriptvar canvas = document.getElementById("glcanvas");
var gl = canvas.getContext("webgl");
gl.clearColor(0.0, 0.0, 0.0, 1.0);
gl.enable(gl.DEPTH_TEST);
gl.depthFunc(gl.LEQUAL);
gl.clear(gl.COLOR_BUFFER_BIT|gl.DEPTH_BUFFER_BIT);
// ...
Not implemented in IE currently. (Maybe never.)