HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML5 Web Storage

HTML5 Web Storage



With HTML5 web storage, websites can store data on a user's computer. Before HTML5, we had to use JavaScript cookies to achieve this functionality.




  • More secure
  • Faster
  • Stores a larger amount of data
  • Stored data is not sent with every server request




  • sessionStorage() i.e, destroyed once the user closes the browser
  • localStorage() i.e, stores data with no expiration date




  • setItem() -> allows us to set the value of local storage
  • getItem() -> retrieve value from local storage
  • removeItem() -> remove the item from local storage

Code Explanation

All Tutorials related to HTML Advance

All Sections related to HTML