CACHE MANIFEST
# version 1
CACHE:
bar.png
chrome.png
refresh.png
Web SQL Database
var db = window.openDatabase("Database Name", "Database Version");
db.transaction(function(tx) {
tx.executeSql("SELECT * FROM test", [], successCallback, errorCallback);
});
Originally designed for offline storage, but
usable for sites using complex data access.
Web Storage
Use local storage to avoid costly round trips
// use localStorage for persistent storage
// use sessionStorage for per tab storage
textarea.addEventListener('keyup', function () {
window.localStorage['value'] = area.value;
window.localStorage['timestamp'] = (new Date()).getTime();
}, false);
textarea.value = window.localStorage['value'];
Example: Save email draft on the client side (crash-safe)
Other HTML5 FeaturesHTML Features <input type="range"> <input autofocus> <input placeholder="...">
New semantic tags (header, section, etc.)
Microdata
ARIA role and state attributes <canvas> <audio>,<video> data: URIs
SVG for images CSS Features
CSS 3 selectors!
Gradients
Rounded corners
Reflections
Box shadows
Text shadows
Transitions
Transformations
Animations
Independent background opacity @font-face
Pointer events
HBox/VBox layout
Text clipping
Multi-background background-size, background-origin, background-clip
HSLA color model JS & DOM Features One way to listen for events querySelectorAll document.HTMLDivElement, etc.
Array generics, some ES5 features
JITing JS engines
Web Workers
Local Storage
Web Sockets
AppCache
Notifications
Drag and Drop
Geolocation
WebGL