Closed wonderfan closed 9 years ago
The most interesting new API's are:
HTML Geolocation HTML Drag and Drop HTML Local Storage HTML Application Cache HTML Web Workers HTML SSE
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.js"></script>
<![endif]-->
HTML local storage provides two objects for storing data on the client:
window.localStorage - stores data with no expiration date window.sessionStorage - stores data for one session (data is lost when the tab is closed)
To enable application cache, include the manifest attribute in the document's tag
A web worker is a JavaScript running in the background, without affecting the performance of the page.
Server-Sent Events allow a web page to get updates from a server.
The most interesting new elements are:
New semantic elements like
<header>, <footer>, <article>, and <section>
.New form control attributes like number, date, time, calendar, and range.
New graphic elements:
<svg> and <canvas>.
New multimedia elements:
<audio> and <video>.