for Skyword
HTML5 became a W3C Candidate Recommendation
it's in final review
next stop is Recommendation
html 5.1 is in the works
Like the <p> tag or <div>
WebSQL
IndexedDB
localStorage
cache manifest
The "role" Attribute, for accessibility
The itemtype, itemscope, and itemprop Attributes
Additional semantics following a specific schema
<div itemscope itemtype ="http://schema.org/Movie">
<h1 itemprop="name">Avatar</h1>
<span>Director: <span itemprop="director">James Cameron</span> (born August 16, 1954)</span>
<span itemprop="genre">Science fiction</span>
<a href="../movies/avatar-theatrical-trailer.html" itemprop="trailer">Trailer</a>
</div>
Read more...
<meta http-equiv="X-UA-Compatible" content="chrome=1">
results via html5test.com
IE 9.............138/500
IE 10...........320/500
FF 18...........393/500
Ch 24..........448/500
Maxthon....464/500
Open-source JS library to
help make html5 & css3 sites.
Detect Browser Compatibility
Add css classes to facilitate fallbacks
Older Browsers: Shim & load polyfills
<!DOCTYPE html>
<html class="no-js">
<head>
...
<script src="js/modernizr-1.0.min.js"></script>
...
<html class="js canvas canvastext geolocation rgba hsla no-multiplebgs borderimage borderradius boxshadow opacity no-cssanimations csscolumns no-cssgradients no-cssreflections csstransforms no-csstransforms3d no-csstransitions video audio cufon-active fontface cufon-ready">
<head>
...
<script src="js/modernizr-1.0.min.js"></script>
...
.no-js #page,
.no-cssgradient #page {
background: url("images/gradient.png");
}
.cssgradient #page {
background-image: linear-gradient(top, #555, #333)
}
// a string, an object, or an array of strings and objects
Modernizr.load([{
test : Modernizr.fontface && Modernizr.cssgradients,
// Modernizr.load loads css and javascript by default
g nope : ['presentational-polyfill.js',
'presentational.css']
},{// Functional polyfills
// This just has to be truthy
test : Modernizr.websockets && window.JSON,
// socket-io.js and json2.js
nope : 'functional-polyfills.js',
// You can also give arrays of resources to load.
both : [ 'app.js', 'extra.js' ],
complete : function () {
// Run this after everything in this group has
// downloaded and executed, as well everything
// in all previous groups
app.init();
}
},
// load analytics after everything else
'analytics.js'
]);
if (Modernizr.localstorage) {
// window.localStorage is available!
} else {
// no native support for local storage :(
// use a polyfill! :)
}
Polyfills are a type of shim that retrofit legacy browsers with modern HTML5/CSS3 features
Shims refer to any code that intercepts API calls and provides a layer of abstraction