1.

What is local storage in HTML5? How it is used?

Answer»

HTML5 has introduced the concept of LOCAL Storage, which is used to access a web page's local storage area without any time limit. Local storage is AVAILABLE whenever the user wants to use the web page.

The data stored in Local Storage does not GET automatically deleted when the browser window is closed; it only gets removed when deleted manually. In local storage, the data is stored using a key and value.

12. What are the different types of storage in html5? Explain

In HTML5, data can be stored in 2 ways – SESSION storage and local storage.

  • Session Storage: The data or details from the current browsing session are stored. Once the browser gets closer by the user, the storage data gets removed.
  • Local Storage: The data does not get cleared automatically when the user CLOSES the browser.


Discussion

No Comment Found