HTML5 Question: Download HTML5 PDF

WHAT ARE THE DIFFERENT TYPES OF STORAGE IN HTML5?

Tweet Share WhatsApp

Answer:

HTML5 offers two new objects for storing data on the client:

LocalStorage – stores data with no time limit

<script type=“text/javascript”>
localStorage.lastname=“ZAG”;
document.write(localStorage.lastname);
</script>

SessionStorage – stores data for one session.The data is deleted when the user closes the browser window.

<script type=“text/javascript”>
sessionStorage.lastname=“ZAG”;
document.write(sessionStorage.lastname);
</script>

Download HTML5 PDF Read All 23 HTML5 Questions
Previous QuestionNext Question
HOW DO YOU PLAY A VIDEO USING HTML5?HOW DO YOU PLAY A AUDIO USING HTML5?