Storing information whenever we visit a website is known due to the concept of cookies. However, cookies are limited in size. The concept of cookies is that the browser sends these cookies to the web server every time we visit the web page.

However, HTML5 storage concept is more enhanced. The websites access this page with the aid of JavaScript whenever we visit the web page. The web page can only access the information stored by it and doesn't have access to any other data other than the stored information.

There are two types of storage methods used in HTML5 as follows:

  • sessionStorage
  • localStorage


The sessionStorage property is used to store data for any specific session. Once we close the browser, the session expires, and ...

Get HTML5 and CSS3 Transition, Transformation, and Animation now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.