View on GitHub

reading-notes

html

HTML Web Storage API

With web storage, web applications can store data locally within the user’s browser, Web storage is more secure, and large amounts of data can be stored locally, without affecting website performance.

HTML Web Storage Objects

HTML web storage provides two objects for storing data on the client:

1

Example explained:

The sessionStorage Object

The sessionStorage object is equal to the localStorage object, except that it stores the data for only one session. The data is deleted when the user closes the specific browser tab.

2

web