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.
Advantages:-
- More secure
- Faster
- Stores a larger amount of data
- Stored data is not sent with every server request
Types:-
- sessionStorage() i.e, destroyed once the user closes the browser
- localStorage() i.e, stores data with no expiration date
Methods:-
- 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
HTML5
HTML5 Content Model
The header Tag
The footer Tag
The nav Tag
The article Tag
The section Tag
The aside Tag
The audio Tag
The video Tag
The Progress Bar
Web Storage
Geolocation API
Drag and Drop
HTML5 SVG
The Canvas Tag
HTML5 Forms