wonderfan / javascript

Explore the power of HTML,CSS and JavaScript
1 stars 0 forks source link

HTML5 new tags #36

Closed wonderfan closed 9 years ago

wonderfan commented 9 years ago

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>.

wonderfan commented 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

wonderfan commented 9 years ago
<!--[if lt IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.js"></script>
<![endif]-->
wonderfan commented 9 years ago

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)

wonderfan commented 9 years ago

To enable application cache, include the manifest attribute in the document's tag

wonderfan commented 9 years ago

A web worker is a JavaScript running in the background, without affecting the performance of the page.

wonderfan commented 9 years ago

Server-Sent Events allow a web page to get updates from a server.