What is session storage?
Answer / Vikas Mohan
Session Storage in HTML5 is a type of web storage that stores data across pages but is limited to the same origin as the document where it was set. Session Storage is useful for storing data during user sessions, and once the user closes the browser, the data is deleted. Here's an example:
```javascript
sessionStorage.setItem('key', 'value');
sessionStorage.getItem('key'); // Retrieves the value associated with the key
sessionStorage.removeItem('key'); // Removes the value associated with the key
```
| Is This Answer Correct ? | 0 Yes | 0 No |
What is ul in html?
What is the function of the br tag?
How to redirect using HTML?
How do I make my website responsive?
What is meta html?
What is the difference between frame and div in html?
Explain five new input types provided by HTML5 for forms?
What is the difference between <header> and <footer> tag?
What is getelementbyid innerhtml?
What is inner text?
What is a body tag?
Is the br tag deprecated?