O'Reilly logo

HTML5 and CSS3 Transition, Transformation, and Animation by Gianluca Guarini, Aravind Shenoy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Webstorage

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

sessionStorage

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required