---
title: "What is the use of localStorage in HTML5 ?"  
description: "What is the use of localStorage in HTML5 ?"  
author: "AVADHESH PATEL"  
published: 2012-10-20  
updated: 2020-09-24  
canonical: https://www.mindstick.com/interview/1548/what-is-the-use-of-localstorage-in-html5  
category: "html5"  
tags: ["html5"]  
reading_time: 1 minute  

---

# What is the use of localStorage in HTML5 ?

<script type="text/javascript">\
localStorage.name="PCDS";\
document.write(localStorage.name);\
</script>\
<script type="text/javascript">\
localStorage.address="Mumbai India..";\
document.write(localStorage.address);\
</script>

## Answers

### Answer by AVADHESH PATEL

<script type="text/javascript">\
localStorage.name="PCDS";\
document.write(localStorage.name);\
</script>\
<script type="text/javascript">\
localStorage.address="Mumbai India..";\
document.write(localStorage.address);\
</script>


---

Original Source: https://www.mindstick.com/interview/1548/what-is-the-use-of-localstorage-in-html5

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
