Web Storage is HTML5's way of allowing the applications to store non-structured information on the client other than cookies. Web Storage can be of two types: localStorage, which doesn't have an expiration, and sessionStorage, which is deleted when the session ends. Web Storage is managed by theĀ window.localStorage and window.sessionStorage by the JavaScript objects.
The following screenshot shows how Web Storage, the localStorage type in this case, can be seen using the browser's developer tools. As can be seen in the screenshot, information is stored using pairs of keys and values: