HTML5 Web Storage


HTML5 Offline Storage

Web developers have traditionally used cookies to store information on a visitor’s local machine, allowing a Webpage to read this information back at a later point. While cookies are very useful for storing basic data, they are limited by the fact that Web browsers are not required to keep more than 20 cookies per Web-server.In addition, they are sent to the Web server with every HTTP request, which is a waste of resources. HTML5 provides a solution for these problems with the web Storage.

HTML Data Storage

HTML5 allows us to store data on client side.This can be done in two ways:







HTML5 Local Storage

The local storage object stores data with no time limit.The data can be used next day or even 6 months later.

HTML5 Session Storage

The session storage object stores data for one browser session.The data is lost when as soon as the browser window is closed.

Web SQL Databases

Fully relational databases with support for creating tables, inserts, updates, deletes, and selects, with transactions tied to a domain and persists across sessions.

HTML5 offline Application

HTML5 provides support for offline applications, where the browser downloads all the files necessary to use the application offline, and when the user uses the application offline. Most browsers store Web pages in local cache, allowing them to be viewed even if the user is offline. This works fine for static pages, but it is not available for dynamic content that is typically database-driven, such as Gmail, Facebook, or Twitter.
Related HTML5 topics:







  • HTML5 Video


  • HTML5 New Features


  • HTML5 Introduction