WHAT ARE THE DIFFERENT TYPES OF STORAGE IN HTML5?
Submitted by: AdministratorHTML5 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>
Submitted by: Administrator
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>
Submitted by: Administrator
Read Online HTML5 Job Interview Questions And Answers
Top HTML5 Questions
☺ | Tell me What is the <!DOCTYPE>? Is it necessary to use in HTML5 |
☺ | Explain How many New Markup Elements you know in HTML5 |
☺ | What is the status of the development of the HTML 5 standard? |
☺ | Explain the difference between HTML and HTML5 |
☺ | Explain What are the New Media Elements in HTML5? is canvas element used in HTML5 |
Top Top World Wide Web Categories
☺ | Cascading Style Sheet CSS Interview Questions. |
☺ | HTML5 Interview Questions. |
☺ | Basic Internet Interview Questions. |
☺ | Domain Name System (DNS) Interview Questions. |
☺ | JavaScript Interview Questions. |