HTML Web Storage API
Learn how the HTML Web Storage API stores data using localStorage and sessionStorage.
The Web Storage API stores data inside the browser.
Types of Storage
localStorage→ permanentsessionStorage→ temporary
Example
<script>
localStorage.setItem("user", "John");
</script>
Was this helpful?
Thanks for your feedback!