With web storage, web applications can store data locally within the user browser. Before HTML5, data had to be stored in cookies. Web storage is more secure, faster, and can store more data (5MB vs 4KB for cookies).
Edit the code below and click Run to see the result live.